Permalink
Browse files

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

  • Loading branch information...
1 parent d21a454 commit eb23b2247d84df104bccb456b45e6e61b8157ef8 @miloops miloops committed Feb 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/identity_map_test.rb
@@ -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'

0 comments on commit eb23b22

Please sign in to comment.