Fix typos to make tests more robust
Apparently we forgot to use the variables which meant the tests weren't testing exactly what they were supposed to test.
This commit is contained in:
@@ -39,6 +39,7 @@ describe "Valuator groups" do
|
||||
within("#valuators") do
|
||||
expect(page).to have_link(valuator1.email, href: admin_valuator_path(valuator1))
|
||||
expect(page).to have_link(valuator2.email, href: admin_valuator_path(valuator2))
|
||||
expect(page).not_to have_link(valuator3.email)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ describe Poll::Officer do
|
||||
create(:poll_officer_assignment, poll: poll_1, officer: officer, date: poll_1.starts_at)
|
||||
create(:poll_officer_assignment, poll: poll_1, officer: officer, date: poll_1.ends_at)
|
||||
create(:poll_officer_assignment, poll: poll_2, officer: officer)
|
||||
create(:poll_officer_assignment, poll: poll_3, officer: officer, final: true)
|
||||
|
||||
assigned_polls = officer.voting_days_assigned_polls
|
||||
|
||||
@@ -91,6 +92,7 @@ describe Poll::Officer do
|
||||
create(:poll_officer_assignment, poll: poll_1, officer: officer, date: poll_1.starts_at, final: true)
|
||||
create(:poll_officer_assignment, poll: poll_1, officer: officer, date: poll_1.ends_at, final: true)
|
||||
create(:poll_officer_assignment, poll: poll_2, officer: officer, final: true)
|
||||
create(:poll_officer_assignment, poll: poll_3, officer: officer)
|
||||
|
||||
assigned_polls = officer.final_days_assigned_polls
|
||||
|
||||
|
||||
Reference in New Issue
Block a user