Skip to content

Commit

Permalink
Should use "=" instead "replace" after this commit: 1644663
Browse files Browse the repository at this point in the history
  • Loading branch information
miloops committed Feb 18, 2011
1 parent d21a454 commit eb23b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/associations/identity_map_test.rb
Expand Up @@ -128,7 +128,7 @@ def test_parent_instance_should_be_shared_with_replaced_via_accessor_children
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'
Expand Down

0 comments on commit eb23b22

Please sign in to comment.