aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/cases/relations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index e44533cf60..eec43ef79e 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -204,7 +204,7 @@ class RelationTest < ActiveRecord::TestCase
def test_finding_with_subquery_with_eager_loading_in_where
relation = Comment.includes(:post).where("posts.type": "Post")
- assert_equal relation.to_a, Comment.where(id: relation).to_a
+ assert_equal relation.sort_by(&:id), Comment.where(id: relation).sort_by(&:id)
end
def test_finding_with_conditions