mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Plural name for a relation instance
This commit is contained in:
parent
07fafc0561
commit
9778bcd7ea
1 changed files with 7 additions and 7 deletions
|
@ -71,19 +71,19 @@ if defined? ActiveRecord
|
|||
end
|
||||
|
||||
test 'regression: call arel first' do
|
||||
@user = User.page(1).without_count
|
||||
@user.arel
|
||||
@users = User.page(1).without_count
|
||||
@users.arel
|
||||
|
||||
assert_equal false, @user.last_page?
|
||||
assert_equal false, @users.last_page?
|
||||
end
|
||||
|
||||
test 'regression: call last page first' do
|
||||
@user = User.page(1).without_count
|
||||
@users = User.page(1).without_count
|
||||
|
||||
@user.last_page?
|
||||
@user.arel
|
||||
@users.last_page?
|
||||
@users.arel
|
||||
|
||||
assert_equal false, @user.last_page?
|
||||
assert_equal false, @users.last_page?
|
||||
end
|
||||
|
||||
def assert_no_queries
|
||||
|
|
Loading…
Reference in a new issue