diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-26 06:25:05 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-26 06:25:05 -0700 |
commit | cfd086a30298aef369d04a7d489d256699fef140 (patch) | |
tree | 18643e3f6934505fe3298d6d722c65216d26e94a /activerecord/test/cases | |
parent | b4e577945b882594425082ae16e2076cc82bdc72 (diff) | |
parent | 41902e6932d46e3142185ee8d75dd861d0424d4e (diff) | |
download | rails-cfd086a30298aef369d04a7d489d256699fef140.tar.gz rails-cfd086a30298aef369d04a7d489d256699fef140.tar.bz2 rails-cfd086a30298aef369d04a7d489d256699fef140.zip |
Merge pull request #2272 from cesario/fix_relations_test
Simplify the test by using id and name.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
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 |