diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index 1d83c80819fa74b9ebb8ce8b49a37ac36576e1f8..6b3314fbc28068abf1be7d32f1d9b53537a540c2 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -827,7 +827,7 @@ def test_pluck_multiple_columns def test_pluck_with_multiple_columns_and_selection_clause assert_equal [[1, 50], [2, 50], [3, 50], [4, 60], [5, 55], [6, 53]], - Account.pluck("id, credit_limit") + Account.order(:id).pluck("id, credit_limit") end def test_pluck_with_multiple_columns_and_includes