Replace time.zone.today for date.current

This commit is contained in:
Bertocq
2018-01-17 00:46:58 +01:00
committed by Javi Martín
parent 9c7962c3a6
commit 71bd6e41c6
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)