updates specs
This commit is contained in:
@@ -16,7 +16,7 @@ feature 'Admin booths assignments' do
|
|||||||
click_link 'Booths (0)'
|
click_link 'Booths (0)'
|
||||||
end
|
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
|
fill_in 'search-booths', with: booth.name
|
||||||
click_button 'Search'
|
click_button 'Search'
|
||||||
@@ -32,7 +32,7 @@ feature 'Admin booths assignments' do
|
|||||||
click_link 'Booths (1)'
|
click_link 'Booths (1)'
|
||||||
end
|
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
|
expect(page).to have_content booth.name
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ feature 'Admin booths assignments' do
|
|||||||
click_link 'Booths (1)'
|
click_link 'Booths (1)'
|
||||||
end
|
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
|
expect(page).to have_content booth.name
|
||||||
|
|
||||||
within("#booth_#{booth.id}") do
|
within("#booth_#{booth.id}") do
|
||||||
@@ -60,7 +60,7 @@ feature 'Admin booths assignments' do
|
|||||||
click_link 'Booths (0)'
|
click_link 'Booths (0)'
|
||||||
end
|
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
|
expect(page).to_not have_content booth.name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -30,9 +30,7 @@ feature 'Admin poll officers' do
|
|||||||
scenario 'Delete' do
|
scenario 'Delete' do
|
||||||
click_link 'Delete position'
|
click_link 'Delete position'
|
||||||
|
|
||||||
within("#officers") do
|
expect(page).to_not have_css '#officers'
|
||||||
expect(page).to_not have_content @officer.name
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -103,7 +103,7 @@ feature 'Admin polls' do
|
|||||||
visit admin_poll_path(poll)
|
visit admin_poll_path(poll)
|
||||||
click_link "Booths (0)"
|
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
|
end
|
||||||
|
|
||||||
scenario "Booth list", :js do
|
scenario "Booth list", :js do
|
||||||
@@ -122,7 +122,7 @@ feature 'Admin polls' do
|
|||||||
expect(page).to have_content booth.location
|
expect(page).to have_content booth.location
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user