Permalink
Browse files

#first doesn't take an order in this test

  • Loading branch information...
1 parent 431d766 commit 679a4ebf1b1aeecbc36eb15e8d52fe52c9a257e2 @dmathieu dmathieu committed with jonleighton 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 679a4eb

Please sign in to comment.