Should use "=" instead "replace" after this commit: 1644663ba7

This commit is contained in:
Emilio Tagua
2011-02-18 15:44:23 -03:00
parent d21a454327
commit eb23b2247d

View File

@@ -128,7 +128,7 @@ class InverseHasManyIdentityMapTest < ActiveRecord::TestCase
def test_parent_instance_should_be_shared_with_replaced_via_method_children
m = Author.first
i = Post.new(:title => 'Industrial Revolution Re-enactment', :body => 'Lorem ipsum')
m.posts.replace([i])
m.posts = [i]
assert_not_nil i.author
assert_equal m.name, i.author.name, "Name of man should be the same before changes to parent instance"
m.name = 'Bongo'