updates specs

This commit is contained in:
Alberto Garcia Cabeza
2016-12-28 14:04:28 +01:00
parent 5c6dfefe0c
commit 4ab9a417fb
3 changed files with 7 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ feature 'Admin booths assignments' do
click_link 'Booths (0)'
end
expect(page).to have_content 'There are no booths in this poll'
expect(page).to have_content 'There are no booths assigned to this poll.'
fill_in 'search-booths', with: booth.name
click_button 'Search'
@@ -32,7 +32,7 @@ feature 'Admin booths assignments' do
click_link 'Booths (1)'
end
expect(page).to_not have_content 'There are no booths in this poll'
expect(page).to_not have_content 'There are no booths assigned to this poll.'
expect(page).to have_content booth.name
end
@@ -46,7 +46,7 @@ feature 'Admin booths assignments' do
click_link 'Booths (1)'
end
expect(page).to_not have_content 'There are no booths in this poll'
expect(page).to_not have_content 'There are no booths assigned to this poll.'
expect(page).to have_content booth.name
within("#booth_#{booth.id}") do
@@ -60,7 +60,7 @@ feature 'Admin booths assignments' do
click_link 'Booths (0)'
end
expect(page).to have_content 'There are no booths in this poll'
expect(page).to have_content 'There are no booths assigned to this poll.'
expect(page).to_not have_content booth.name
end
end

View File

@@ -30,9 +30,7 @@ feature 'Admin poll officers' do
scenario 'Delete' do
click_link 'Delete position'
within("#officers") do
expect(page).to_not have_content @officer.name
end
expect(page).to_not have_css '#officers'
end
end

View File

@@ -103,7 +103,7 @@ feature 'Admin polls' do
visit admin_poll_path(poll)
click_link "Booths (0)"
expect(page).to have_content "There are no booths in this poll."
expect(page).to have_content "There are no booths assigned to this poll."
end
scenario "Booth list", :js do
@@ -122,7 +122,7 @@ feature 'Admin polls' do
expect(page).to have_content booth.location
end
end
expect(page).to_not have_content "There are no booths"
expect(page).to_not have_content "There are no booths assigned to this poll."
end
end
end