diff options
author | Emilio Tagua <miloops@gmail.com> | 2011-02-18 15:38:17 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2011-02-18 15:38:17 -0300 |
commit | b8c2feb97e3f0df38b6fd28b38eaab7df3a03984 (patch) | |
tree | 2477c62f840b81898ca85ce6824c49a3dc20b79b | |
parent | 15a03ca9b0b9a3582ca0f7695ed87557eedc95fb (diff) | |
download | rails-b8c2feb97e3f0df38b6fd28b38eaab7df3a03984.tar.gz rails-b8c2feb97e3f0df38b6fd28b38eaab7df3a03984.tar.bz2 rails-b8c2feb97e3f0df38b6fd28b38eaab7df3a03984.zip |
Use to_a instead :load in test, since :load changed.
-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 |