aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorKevin Deisz <kevin.deisz@gmail.com>2015-06-01 21:37:45 -0400
committerKevin Deisz <kevin.deisz@gmail.com>2015-06-02 05:36:24 -0400
commit2dd95a775c7aa9565f5b43f41ccf09a302ca1832 (patch)
treee4ba0bdd570693854506d49fe25c873c8d4c91d1 /activerecord/test
parentc87cce1ddfe2a68dd598bece49769f3f72322a28 (diff)
downloadrails-2dd95a775c7aa9565f5b43f41ccf09a302ca1832.tar.gz
rails-2dd95a775c7aa9565f5b43f41ccf09a302ca1832.tar.bz2
rails-2dd95a775c7aa9565f5b43f41ccf09a302ca1832.zip
Fix postgresql DISTINCT requirement in pluck test
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/calculations_test.rb4
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