Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2883 from dmathieu/fix_test

#first doesn't take an order in this test
  • Loading branch information...
commit 3c846c29d3eca67c9562807beee199ec61b03d31 2 parents 1fdd95d + e8d5920
@jonleighton jonleighton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/named_scope_test.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.