From 71bd6e41c602b4c4dd71450d78f9f39865865238 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 17 Jan 2018 00:46:58 +0100 Subject: [PATCH] Replace time.zone.today for date.current --- spec/features/officing/residence_spec.rb | 2 +- spec/features/officing/results_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/officing/residence_spec.rb b/spec/features/officing/residence_spec.rb index aeae7fb2c..3908fa546 100644 --- a/spec/features/officing/residence_spec.rb +++ b/spec/features/officing/residence_spec.rb @@ -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) diff --git a/spec/features/officing/results_spec.rb b/spec/features/officing/results_spec.rb index 75735a497..54d674220 100644 --- a/spec/features/officing/results_spec.rb +++ b/spec/features/officing/results_spec.rb @@ -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)