Changes test for pagination

This commit is contained in:
Alberto Garcia Cabeza
2015-08-20 12:55:31 +02:00
parent 51d08d9798
commit 0d54cca910
3 changed files with 3 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ data:
- config/locales/moderation.%{locale}.yml
- config/locales/devise_views.%{locale}.yml
- config/locales/responders.%{locale}.yml
- config/locales/kaminari.%{locale}.yml
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
# `i18n-tasks normalize -p` will force move the keys according to these rules

View File

@@ -27,7 +27,7 @@ feature 'Comments' do
visit debate_path(debate)
expect(page).to have_css('.comment', count: per_page)
within("nav.pagination") do
within("ul.pagination") do
expect(page).to have_content("1")
expect(page).to have_content("2")
expect(page).to_not have_content("3")

View File

@@ -24,7 +24,7 @@ feature 'Debates' do
expect(page).to have_selector('#debates .debate', count: per_page)
within("nav.pagination") do
within("ul.pagination") do
expect(page).to have_content("1")
expect(page).to have_content("2")
expect(page).to_not have_content("3")