1
0
Fork 0
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:
Akira Matsuda 2016-11-23 20:10:28 +09:00
parent 315e06bcc4
commit 8b9e5382ef
2 changed files with 5 additions and 0 deletions

View file

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

View file

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