mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Make sure that page_entries_info works for every view adapter
This commit is contained in:
parent
315e06bcc4
commit
8b9e5382ef
2 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,7 @@ class UsersController < ApplicationController
|
|||
render inline: <<-ERB
|
||||
<%= @users.map(&:name).join("\n") %>
|
||||
<%= paginate @users %>
|
||||
<div class="info"><%= page_entries_info @users %></div>
|
||||
ERB
|
||||
end
|
||||
|
||||
|
|
|
@ -59,5 +59,9 @@ class NavigationTest < Test::Unit::TestCase
|
|||
assert page.has_content? '1'
|
||||
end
|
||||
end
|
||||
|
||||
within 'div.info' do
|
||||
assert page.has_text? 'Displaying users 1'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue