aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-09-04 09:56:55 +0100
committerJon Leighton <j@jonathanleighton.com>2011-09-04 09:56:55 +0100
commitef7e60f008aab5b6390f44ae8f5923edcdf470b8 (patch)
tree411cf98eba2a77fcfc90029568eb928782156ec4 /activerecord/test
parent98c3fd87e2879ab2fb9c8cd31afacae5e7110325 (diff)
downloadrails-ef7e60f008aab5b6390f44ae8f5923edcdf470b8.tar.gz
rails-ef7e60f008aab5b6390f44ae8f5923edcdf470b8.tar.bz2
rails-ef7e60f008aab5b6390f44ae8f5923edcdf470b8.zip
Revert "Fixes bug in ActiveRecord::QueryMethods, #1697"
This reverts commit 0df27c98d982ec87d2fb48cfda82694eb267993e. Reverted due to failing test, see #2845.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relations_test.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index c3bad58174..da96afd718 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -934,11 +934,6 @@ class RelationTest < ActiveRecord::TestCase
assert_equal 'zyke', FastCar.order_using_old_style.limit(1).first.name
end
- def test_order_with_function_and_last
- authors = Author.scoped
- assert_equal authors(:bob), authors.order( "id asc, COALESCE( organization_id, owned_essay_id)" ).last
- end
-
def test_order_using_scoping
car1 = CoolCar.order('id DESC').scoping do
CoolCar.find(:first, :order => 'id asc')