diff options
-rw-r--r-- | activerecord/test/cases/identity_map_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/identity_map_test.rb b/activerecord/test/cases/identity_map_test.rb index 16da188476..6608802c23 100644 --- a/activerecord/test/cases/identity_map_test.rb +++ b/activerecord/test/cases/identity_map_test.rb @@ -176,7 +176,7 @@ class IdentityMapTest < ActiveRecord::TestCase pirate.reload pirate.birds_attributes = [{ :id => posideons.id, :name => 'Grace OMalley' }] - assert_equal 'Grace OMalley', pirate.birds.send(:load).find { |r| r.id == posideons.id }.name + assert_equal 'Grace OMalley', pirate.birds.to_a.find { |r| r.id == posideons.id }.name end def test_changing_associations |