Skip to content

Commit

Permalink
Merge pull request #2877 from dmathieu/fix_tests_pg_18
Browse files Browse the repository at this point in the history
Last orders the records by id
  • Loading branch information
spastorino committed Sep 5, 2011
1 parent c33b7c4 commit d194397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/named_scope_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ 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.to_a.first(2)
assert_equal Topic.base.last(2), Topic.base.to_a.last(2)
assert_equal Topic.base.first(2), Topic.base.order("id").to_a.first(2)
assert_equal Topic.base.last(2), Topic.base.order("id").to_a.last(2)
end

def test_first_and_last_should_not_use_query_when_results_are_loaded
Expand Down

0 comments on commit d194397

Please sign in to comment.