mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Simplify the test by using id and name. id will be the only real sort criteria in any case as it's unique.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user