diff options
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index c3409a1ca8..7886d9e504 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -854,8 +854,7 @@ class RelationTest < ActiveRecord::TestCase set = Set.new([david.id, mary.id]) assert_queries(1) { - relation = Author.where(:id => set) - assert_equal [david, mary], relation + assert_equal [david, mary], Author.where(id: set).to_a } end |