Permalink
Browse files

Merge pull request #2883 from dmathieu/fix_test

#first doesn't take an order in this test
  • Loading branch information...
2 parents 1fdd95d + e8d5920 commit 3c846c29d3eca67c9562807beee199ec61b03d31 @jonleighton jonleighton committed Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/named_scope_test.rb
@@ -181,7 +181,7 @@ def test_first_and_last_should_support_find_options
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

0 comments on commit 3c846c2

Please sign in to comment.