diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-04-30 22:15:29 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-04-30 22:18:35 +0100 |
commit | 838101ae04be06138f1bd7418473092b92754293 (patch) | |
tree | 7f8eacfdb22f0437b7c59b691f84116c88493e75 /activerecord/test | |
parent | b7ec8755bc47599b91d648788f3073a36d7d8413 (diff) | |
download | rails-838101ae04be06138f1bd7418473092b92754293.tar.gz rails-838101ae04be06138f1bd7418473092b92754293.tar.bz2 rails-838101ae04be06138f1bd7418473092b92754293.zip |
Fix PR #6091
1. ActiveRecord::Base is not ActiveRecord::Relation
2. The order of records from an SQL query is uncertain without an ORDER clause
3. Run your own tests when submitting a pull request
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/calculations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index 4ddd99ea97..e096585f62 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -467,6 +467,6 @@ class CalculationsTest < ActiveRecord::TestCase end def test_plucks_with_ids - assert_equal Company.all.map(&:id), Company.ids + assert_equal Company.all.map(&:id).sort, Company.ids.sort end end |