Fix vote collection date expectations

This commit is contained in:
Bertocq
2017-10-17 12:16:09 +02:00
parent 78410242e9
commit 68e09e8a9a

View File

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