Permalink
Browse files

Merge pull request #15515 from leafac/fix-inverse-associations-block-…

…test

Fix inverse associations test
  • Loading branch information...
matthewd committed Jun 5, 2014
2 parents 92cf133 + 5b66fba commit 2071a188f0980a1636898733714c27da305f9eb8
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/inverse_associations_test.rb
@@ -333,7 +333,7 @@ def test_parent_instance_should_be_shared_with_newly_block_style_created_child
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"

0 comments on commit 2071a18

Please sign in to comment.