aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorFranck Verrot <franck@verrot.fr>2011-07-26 11:36:18 +0200
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:16 -0700
commit5004aaffc1c2bf81dfd23178b8ad691f0cecef26 (patch)
tree23ca5edae919d57908ba9bc52793b30d70ee7b40 /activerecord
parent16e3c40426c470458764dfd62841d647c725ff35 (diff)
downloadrails-5004aaffc1c2bf81dfd23178b8ad691f0cecef26.tar.gz
rails-5004aaffc1c2bf81dfd23178b8ad691f0cecef26.tar.bz2
rails-5004aaffc1c2bf81dfd23178b8ad691f0cecef26.zip
Simplify the test by using id and name. `id` will be the only real sort criteria in any case as it's unique.
Diffstat (limited to 'activerecord')
-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 6363cae371..821da91f0a 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -963,6 +963,6 @@ class RelationTest < ActiveRecord::TestCase
end
def test_ordering_with_extra_spaces
- assert_equal authors(:david), Author.order('organization_id ASC , owned_essay_id DESC').last
+ assert_equal authors(:david), Author.order('id DESC , name DESC').last
end
end