diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-07-21 20:21:03 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-07-21 20:21:03 -0300 |
commit | 0e0866e0565bd530ee265b9298accff4185f7022 (patch) | |
tree | 80bb65ebb7567999ca3de72cec47fc31fd2e3969 /activerecord/test/cases/base_test.rb | |
parent | f32c3709830eb8d9f68a59c94f6791621c2b52ac (diff) | |
download | rails-0e0866e0565bd530ee265b9298accff4185f7022.tar.gz rails-0e0866e0565bd530ee265b9298accff4185f7022.tar.bz2 rails-0e0866e0565bd530ee265b9298accff4185f7022.zip |
Introduced ActiveRecord::Relation, a layer between an ARel relation and an AR relation
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index e47f898485..3143ec2850 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1784,7 +1784,7 @@ class BasicsTest < ActiveRecord::TestCase end def test_all_with_conditions - assert_equal Developer.find(:all, :order => 'id desc'), Developer.all(:order => 'id desc') + assert_equal Developer.find(:all, :order => 'id desc'), Developer.all.order('id desc').to_a end def test_find_ordered_last |