diff options
Diffstat (limited to 'activerecord/test/cases/associations/identity_map_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/identity_map_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/identity_map_test.rb b/activerecord/test/cases/associations/identity_map_test.rb index cfb1d4efe0..3d3ae0594b 100644 --- a/activerecord/test/cases/associations/identity_map_test.rb +++ b/activerecord/test/cases/associations/identity_map_test.rb @@ -112,6 +112,7 @@ class InverseHasManyIdentityMapTest < ActiveRecord::TestCase m = Author.first i = Post.new(:title => 'Industrial Revolution Re-enactment', :body => 'Lorem ipsum') m.posts = [i] + assert_same m, i.author.target 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' |