diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-07-28 13:14:11 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:22 -0700 |
commit | bec59779326daa35aab483fa8b95c0f87440fede (patch) | |
tree | 925af7a1f03c8f548ac70ff99d4ec42a664f7fd5 /activerecord/test/cases/relations_test.rb | |
parent | 66fdfbc2d590672b2234358a8ab8bba608a192ca (diff) | |
download | rails-bec59779326daa35aab483fa8b95c0f87440fede.tar.gz rails-bec59779326daa35aab483fa8b95c0f87440fede.tar.bz2 rails-bec59779326daa35aab483fa8b95c0f87440fede.zip |
Revert "Merge pull request #2309 from smasry/master"
This reverts commit 9d396ee8195e31f646e0b89158ed96f4db4ab38f, reversing
changes made to fa2bfd832c1d1e997d93c2269a485cc74782c86d.
Reason: the change broke the build.
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 8a2cf0ef85..821da91f0a 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -911,11 +911,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, MAX( 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') |