diff options
author | Matthew Draper <matthew@trebex.net> | 2014-06-05 15:07:50 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2014-06-05 15:07:50 +0930 |
commit | 2071a188f0980a1636898733714c27da305f9eb8 (patch) | |
tree | 650f988766d5605f01955e9b8252c7c000cf0f30 | |
parent | 92cf133788b2bef729ffeda5ca4c87d3a011e7ba (diff) | |
parent | 5b66fba60fad48a704e369275a5eee58fbf3d6cf (diff) | |
download | rails-2071a188f0980a1636898733714c27da305f9eb8.tar.gz rails-2071a188f0980a1636898733714c27da305f9eb8.tar.bz2 rails-2071a188f0980a1636898733714c27da305f9eb8.zip |
Merge pull request #15515 from leafac/fix-inverse-associations-block-test
Fix inverse associations test
-rw-r--r-- | activerecord/test/cases/associations/inverse_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/inverse_associations_test.rb b/activerecord/test/cases/associations/inverse_associations_test.rb index 893030345f..a674a39d65 100644 --- a/activerecord/test/cases/associations/inverse_associations_test.rb +++ b/activerecord/test/cases/associations/inverse_associations_test.rb @@ -333,7 +333,7 @@ class InverseHasManyTests < ActiveRecord::TestCase def test_parent_instance_should_be_shared_within_create_block_of_new_child man = Man.first - interest = man.interests.build do |i| + interest = man.interests.create do |i| assert i.man.equal?(man), "Man of child should be the same instance as a parent" end assert interest.man.equal?(man), "Man of the child should still be the same instance as a parent" |