From 68e09e8a9a1880d6e5850cef23696aa00c476119 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Tue, 17 Oct 2017 12:16:09 +0200 Subject: [PATCH] Fix vote collection date expectations --- spec/features/admin/poll/shifts_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/poll/shifts_spec.rb b/spec/features/admin/poll/shifts_spec.rb index 6f027fad3..35df2e20e 100644 --- a/spec/features/admin/poll/shifts_spec.rb +++ b/spec/features/admin/poll/shifts_spec.rb @@ -101,7 +101,7 @@ feature 'Admin shifts' do shift1 = create(:poll_shift, :vote_collection_task, officer: officer, booth: booth, date: Time.zone.today) shift2 = create(:poll_shift, :recount_scrutiny_task, officer: officer, booth: booth, date: Time.zone.tomorrow) - vote_collection_dates = (poll.starts_at.to_date..poll.ends_at.to_date).to_a + vote_collection_dates = (Date.current..poll.ends_at.to_date).to_a .reject { |date| date == Time.zone.today } .map { |date| I18n.l(date, format: :long) } recount_scrutiny_dates = (poll.ends_at.to_date..poll.ends_at.to_date + 1.week).to_a