Permalink
Browse files

Simplify the test by using id and name. `id` will be the only real so…

…rt criteria in any case as it's unique.
  • Loading branch information...
1 parent 16e3c40 commit 5004aaffc1c2bf81dfd23178b8ad691f0cecef26 @franckverrot franckverrot committed with fxn Jul 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relations_test.rb
@@ -963,6 +963,6 @@ def test_eager_loading_with_conditions_on_joins
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

0 comments on commit 5004aaf

Please sign in to comment.