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