updates specs
This commit is contained in:
@@ -40,7 +40,6 @@ feature 'Admin booths' do
|
|||||||
booth = create(:poll_booth)
|
booth = create(:poll_booth)
|
||||||
|
|
||||||
visit admin_booths_path
|
visit admin_booths_path
|
||||||
click_link booth.name
|
|
||||||
|
|
||||||
expect(page).to have_content booth.name
|
expect(page).to have_content booth.name
|
||||||
expect(page).to have_content booth.location
|
expect(page).to have_content booth.location
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ feature 'Admin poll officers' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Delete' do
|
scenario 'Delete' do
|
||||||
click_link 'Delete'
|
click_link 'Delete position'
|
||||||
|
|
||||||
within("#officers") do
|
within("#officers") do
|
||||||
expect(page).to_not have_content @officer.name
|
expect(page).to_not have_content @officer.name
|
||||||
|
|||||||
Reference in New Issue
Block a user