Permalink
Browse files

Use to_a instead :load in test, since :load changed.

  • Loading branch information...
1 parent 15a03ca commit b8c2feb97e3f0df38b6fd28b38eaab7df3a03984 @miloops miloops committed Feb 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/identity_map_test.rb
@@ -176,7 +176,7 @@ def test_has_many_associations
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

0 comments on commit b8c2feb

Please sign in to comment.