updated tag visibility tests for the new valid tag count

This commit is contained in:
juandefelix
2015-10-03 11:59:14 -05:00
parent 45a29f2f4d
commit 03b0fceecc
2 changed files with 4 additions and 4 deletions

View File

@@ -339,13 +339,13 @@ feature 'Debates' do
describe 'Limiting tags shown' do
scenario 'Index page shows up to 5 tags per debate' do
tag_list = ["Hacienda", "Economía", "Medio Ambiente", "Corrupción", "Fiestas populares", "Prensa", "Huelgas"]
tag_list = ["Hacienda", "Economía", "Medio Ambiente", "Corrupción", "Fiestas populares", "Prensa"]
create :debate, tag_list: tag_list
visit debates_path
within('.debate .tags') do
expect(page).to have_content '2+'
expect(page).to have_content '1+'
end
end

View File

@@ -422,13 +422,13 @@ feature 'Proposals' do
describe 'Limiting tags shown' do
scenario 'Index page shows up to 5 tags per proposal' do
tag_list = ["Hacienda", "Economía", "Medio Ambiente", "Corrupción", "Fiestas populares", "Prensa", "Huelgas"]
tag_list = ["Hacienda", "Economía", "Medio Ambiente", "Corrupción", "Fiestas populares", "Prensa"]
create :proposal, tag_list: tag_list
visit proposals_path
within('.proposal .tags') do
expect(page).to have_content '2+'
expect(page).to have_content '1+'
end
end