diff options
author | Damien Mathieu <42@dmathieu.com> | 2011-09-06 09:36:04 +0200 |
---|---|---|
committer | Damien Mathieu <42@dmathieu.com> | 2011-09-06 10:01:33 +0200 |
commit | e8d5920b74fb71f3c381b799c8c5812d1c80798c (patch) | |
tree | f6e63f3727ad89ecdc5f9452fc1f1fab256fe3ea | |
parent | bd17c762ae6982866e7da2544eb20e5586659786 (diff) | |
download | rails-e8d5920b74fb71f3c381b799c8c5812d1c80798c.tar.gz rails-e8d5920b74fb71f3c381b799c8c5812d1c80798c.tar.bz2 rails-e8d5920b74fb71f3c381b799c8c5812d1c80798c.zip |
#first doesn't take an order in this test
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 17ff765543..4a09a87322 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -181,7 +181,7 @@ class NamedScopeTest < ActiveRecord::TestCase end def test_first_and_last_should_allow_integers_for_limit - assert_equal Topic.base.first(2), Topic.base.order("id").to_a.first(2) + assert_equal Topic.base.first(2), Topic.base.to_a.first(2) assert_equal Topic.base.last(2), Topic.base.order("id").to_a.last(2) end |