1. 26 7月, 2014 1 次提交
  2. 24 7月, 2014 2 次提交
  3. 22 7月, 2014 6 次提交
  4. 21 7月, 2014 1 次提交
  5. 20 7月, 2014 1 次提交
    • R
      Stop requiring mocha automatically · fd6aaaa0
      Rafael Mendonça França 提交于
      We are planning to remove mocha from our test suite because of
      performance problems. To make this possible we should stop require mocha
      on ActionSupport::TestCase.
      
      This should not affect applications since users still need to add mocha
      to Gemfile and this already load mocha.
      
      Added FIXME notes to place that still need mocha removal
      fd6aaaa0
  6. 19 7月, 2014 2 次提交
    • S
      Fixed typo in comment · 44bf33c9
      Steve 提交于
      44bf33c9
    • S
      create_join_table uses same logic as HABTM reflections · a013b082
      Stefan Kanev 提交于
      Before this change, create_join_table would not remove the common prefix
      in the join table name, unlike ActiveRecord::Reflections. A HABTM
      between Music::Artist and Music::Record would use a table
      music_artists_records, while create_join table would create
      music_artists_music_records.
      a013b082
  7. 18 7月, 2014 2 次提交
  8. 17 7月, 2014 4 次提交
  9. 16 7月, 2014 14 次提交
    • M
    • M
      Fix case statement to use ::Numeric and ::String · 431b4b4d
      Mariano Valles 提交于
      431b4b4d
    • Y
      we intend to keep the `capture` helper for Active Record tests. · 2f93aa0d
      Yves Senn 提交于
      This is a follow up to f8f5cdc9
      2f93aa0d
    • M
      7098c908
    • Y
      Active Record tests still depend on `capture`. Let's keep it for now. · f8f5cdc9
      Yves Senn 提交于
      This is a follow-up to 3121412c
      
      /cc @rafaelfranca
      
      This will remove deprecation warnings from the PostgreSQL suite:
      
      ```
      DEPRECATION WARNING: #capture(stream) is deprecated and will be removed in the next release. (called from capture at /Users/senny/Projects/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:89)
      /Users/senny/Projects/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:89:in `capture'
        /Users/senny/Projects/rails/activerecord/test/cases/adapters/postgresql/composite_test.rb:73:in `ensure_warning_is_issued'
        /Users/senny/Projects/rails/activerecord/test/cases/adapters/postgresql/composite_test.rb:48:in `test_column'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:106:in `block (3 levels) in run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:204:in `capture_exceptions'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:103:in `block (2 levels) in run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:256:in `time_it'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:102:in `block in run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:317:in `on_signal'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:276:in `with_info_handler'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest/test.rb:101:in `run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:759:in `run_one_method'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:293:in `run_one_method'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:287:in `block (2 levels) in run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:286:in `each'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:286:in `block in run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:317:in `on_signal'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:306:in `with_info_handler'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:285:in `run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:149:in `block in __run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:149:in `map'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:149:in `__run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:126:in `run'
        /Users/senny/Projects/rails/.bundle/gems/minitest-5.3.3/lib/minitest.rb:55:in `block in autorun'
      ```
      f8f5cdc9
    • M
      Fix rational to decimal on type_cast_from_user · a4802e21
      Mariano Valles 提交于
      a4802e21
    • Y
      use foreign key DSL in our tests. · 3eca0621
      Yves Senn 提交于
      3eca0621
    • G
      Move #encode_with to Relation · ef8cae60
      Gustavo Beathyate 提交于
      ef8cae60
    • R
      Move uuid_v5 and uuid_v3 to Digest::UUID · 19fae86f
      Rafael Mendonça França 提交于
      These methods are not random so they should not belings to SecureRandom
      module.
      19fae86f
    • R
      Deprecate `reset_#{attribute}` in favor of `restore_#{attribute}`. · 41fb06fa
      Rafael Mendonça França 提交于
      These methods may cause confusion with the `reset_changes` that
      behaves differently
      of them.
      
      Also rename undo_changes to restore_changes to match this new set of
      methods.
      41fb06fa
    • R
      3121412c
    • G
      Implement required #encode_with · b8e8096a
      Gustavo Beathyate 提交于
      While running the spec `ARCONN=mysql2 ruby -v -Itest
      test/cases/yaml_serialization_test.rb`
      the following warning shows up:
      `implementing to_yaml is deprecated, please implement "encode_with"`
      b8e8096a
    • R
      Deprecate ActiveModel::Dirty#reset_changes in favor of #clear_changes_information · 66d0a015
      Rafael Mendonça França 提交于
      This method name is causing confusion with the `reset_#{attribute}`
      methods. While `reset_name` set the value of the name attribute for the
      previous value the `reset_changes` only discard the changes and previous
      changes.
      66d0a015
    • G
      Document the change in `nil` handling for serialized attributes · da6472c9
      Godfrey Chan 提交于
      Also updated the test case to reflect that
      da6472c9
  10. 15 7月, 2014 7 次提交