aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-06-05 15:07:50 +0930
committerMatthew Draper <matthew@trebex.net>2014-06-05 15:07:50 +0930
commit2071a188f0980a1636898733714c27da305f9eb8 (patch)
tree650f988766d5605f01955e9b8252c7c000cf0f30
parent92cf133788b2bef729ffeda5ca4c87d3a011e7ba (diff)
parent5b66fba60fad48a704e369275a5eee58fbf3d6cf (diff)
downloadrails-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.rb2
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"