diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-04-06 19:17:54 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-04-06 19:17:54 -0300 |
commit | d5f80655f9d285cf569ec28e741bbc4bd16e6599 (patch) | |
tree | f235d56f2c0bd97486a0634297fbf7aa1fca8f15 /activerecord/test | |
parent | 8b88df94ebda2e829782f514ff51caeaf5e694dd (diff) | |
parent | e646d3bf574ad3ea7dc5b525511377559b2640dc (diff) | |
download | rails-d5f80655f9d285cf569ec28e741bbc4bd16e6599.tar.gz rails-d5f80655f9d285cf569ec28e741bbc4bd16e6599.tar.bz2 rails-d5f80655f9d285cf569ec28e741bbc4bd16e6599.zip |
Merge pull request #19647 from codeout/association_update
Fix a regression introduced by removing unnecessary db call when replacing
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index 290b2a0d6b..171cfbde44 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -1503,6 +1503,8 @@ class HasManyAssociationsTest < ActiveRecord::TestCase assert_queries(0, ignore_none: true) do firm.clients = [] end + + assert_equal [], firm.send('clients=', []) end def test_transactions_when_replacing_on_persisted |