diff options
-rw-r--r-- | activerecord/test/cases/calculations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index 4a9bc7845f..cb4681109c 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -647,9 +647,9 @@ class CalculationsTest < ActiveRecord::TestCase end def test_pluck_loaded_relation_sql_fragment - companies = Company.order(:id).limit(3).load + companies = Company.order(:name).limit(3).load assert_queries 1 do - assert_equal ['37signals', 'Summit', 'Microsoft'], companies.pluck('DISTINCT name') + assert_equal ['37signals', 'Apex', 'Ex Nihilo'], companies.pluck('DISTINCT name') end end |