diff --git a/activerecord/test/cases/associations/identity_map_test.rb b/activerecord/test/cases/associations/identity_map_test.rb index 07dc3deff499cf54e921442fbafcae3ec7559ec4..37ec3b846e6a36cac4c60adbfbafa53a5c8d65b7 100644 --- a/activerecord/test/cases/associations/identity_map_test.rb +++ b/activerecord/test/cases/associations/identity_map_test.rb @@ -116,7 +116,7 @@ def test_parent_instance_should_be_shared_with_replaced_via_accessor_children m = Author.first i = Post.new(:title => 'Industrial Revolution Re-enactment', :body => 'Lorem ipsum') m.posts = [i] - assert_same m, i.author.target + assert_same m, i.author 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'