Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit eb23b2247d84df104bccb456b45e6e61b8157ef8 1 parent d21a454
Emilio Tagua miloops authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/associations/identity_map_test.rb
2  activerecord/test/cases/associations/identity_map_test.rb
View
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.