mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
#first doesn't take an order in this test
This commit is contained in:
parent
bd17c762ae
commit
e8d5920b74
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue