diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-09-06 02:56:15 -0700 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-09-06 02:56:15 -0700 |
commit | 3c846c29d3eca67c9562807beee199ec61b03d31 (patch) | |
tree | 07dffc361a503d8faa9e21d81b0d2fc8cae551a6 /activerecord | |
parent | 1fdd95d0840c4a9e64eae67e96e85f3ae7ee8b82 (diff) | |
parent | e8d5920b74fb71f3c381b799c8c5812d1c80798c (diff) | |
download | rails-3c846c29d3eca67c9562807beee199ec61b03d31.tar.gz rails-3c846c29d3eca67c9562807beee199ec61b03d31.tar.bz2 rails-3c846c29d3eca67c9562807beee199ec61b03d31.zip |
Merge pull request #2883 from dmathieu/fix_test
#first doesn't take an order in this test
Diffstat (limited to 'activerecord')
-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 |