Skip to content

Commit

Permalink
use HTML5 <nav> tag for the container
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Feb 8, 2011
1 parent af61af9 commit 0c12f5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/views/kaminari/_paginator.html.erb
@@ -1,3 +1,3 @@
<div class='pagination'>
<nav class='pagination'>
<%= content_for :kaminari_paginator_tags %>
</div>
</nav>
2 changes: 1 addition & 1 deletion app/views/kaminari/_paginator.html.haml
@@ -1,2 +1,2 @@
.pagination
%nav.pagination
= content_for :kaminari_paginator_tags
8 changes: 4 additions & 4 deletions spec/acceptance/users_spec.rb
Expand Up @@ -7,7 +7,7 @@
scenario 'navigating by pagination links' do
visit users_path

within 'div.pagination' do
within 'nav.pagination' do
within 'span.page.current' do
page.should have_content '1'
end
Expand All @@ -16,7 +16,7 @@
end
end

within 'div.pagination' do
within 'nav.pagination' do
within 'span.page.current' do
page.should have_content '2'
end
Expand All @@ -25,7 +25,7 @@
end
end

within 'div.pagination' do
within 'nav.pagination' do
within 'span.page.current' do
page.should have_content '4'
end
Expand All @@ -34,7 +34,7 @@
end
end

within 'div.pagination' do
within 'nav.pagination' do
within 'span.page.current' do
page.should have_content '3'
end
Expand Down

0 comments on commit 0c12f5b

Please sign in to comment.