diff options
author | Franck Verrot <franck@verrot.fr> | 2011-07-24 08:17:36 +0200 |
---|---|---|
committer | Franck Verrot <franck@verrot.fr> | 2011-07-24 08:18:04 +0200 |
commit | 77bb0b79f2ed54501046d0e983ef6b10e4bb7b9b (patch) | |
tree | 1ebc2da4210a397cb979155664c6f04f5b07a0ee /activerecord/test | |
parent | d33eb07543aed1a07f9efe40ff7edc983b401957 (diff) | |
download | rails-77bb0b79f2ed54501046d0e983ef6b10e4bb7b9b.tar.gz rails-77bb0b79f2ed54501046d0e983ef6b10e4bb7b9b.tar.bz2 rails-77bb0b79f2ed54501046d0e983ef6b10e4bb7b9b.zip |
Ordering with extra spaces was raising a SQL exception
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 0aaa0342b1..6363cae371 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -961,4 +961,8 @@ class RelationTest < ActiveRecord::TestCase assert scope.eager_loading? end + + def test_ordering_with_extra_spaces + assert_equal authors(:david), Author.order('organization_id ASC , owned_essay_id DESC').last + end end |