1
0
Fork 0
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:
Akira Matsuda 2021-12-20 02:34:27 +09:00
parent 07fafc0561
commit 9778bcd7ea

View file

@ -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