Replace time.zone.today for date.current
This commit is contained in:
@@ -99,7 +99,7 @@ feature "Residence", :with_frozen_time do
|
||||
|
||||
ba = create(:poll_booth_assignment, poll: poll, booth: booth)
|
||||
create(:poll_officer_assignment, officer: officer, booth_assignment: ba)
|
||||
create(:poll_shift, officer: officer, booth: booth, date: Time.zone.today)
|
||||
create(:poll_shift, officer: officer, booth: booth, date: Date.current)
|
||||
|
||||
login_as(officer.user)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ feature "Officing Results", :with_frozen_time do
|
||||
background do
|
||||
@poll_officer = create(:poll_officer)
|
||||
@officer_assignment = create(:poll_officer_assignment, :final, officer: @poll_officer)
|
||||
create(:poll_shift, officer: @poll_officer, booth: @officer_assignment.booth, date: Time.zone.today)
|
||||
create(:poll_shift, officer: @poll_officer, booth: @officer_assignment.booth, date: Date.current)
|
||||
@poll = @officer_assignment.booth_assignment.poll
|
||||
@poll.update(ends_at: 1.day.ago)
|
||||
@question_1 = create(:poll_question, poll: @poll)
|
||||
|
||||
Reference in New Issue
Block a user