Rubocop autocorrections

This commit is contained in:
Bertocq
2017-10-17 22:00:00 +02:00
parent ceec71e558
commit ce0a7f6fad
32 changed files with 101 additions and 111 deletions

View File

@@ -30,9 +30,9 @@ feature 'Officer Assignments' do
expect(page).to have_content officer2.name
expect(page).to_not have_content officer3.name
end
end
end
scenario "Search", :js do
scenario "Search", :js do
poll = create(:poll)
booth = create(:poll_booth)
@@ -62,7 +62,6 @@ feature 'Officer Assignments' do
expect(page).to have_content officer2.name
expect(page).to_not have_content officer3.name
end
end
end
end

View File

@@ -102,11 +102,11 @@ feature 'Admin shifts' do
shift2 = create(:poll_shift, :recount_scrutiny_task, officer: officer, booth: booth, date: Time.zone.tomorrow)
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) }
.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
.reject { |date| date == Time.zone.tomorrow }
.map { |date| I18n.l(date, format: :long) }
.reject { |date| date == Time.zone.tomorrow }
.map { |date| I18n.l(date, format: :long) }
visit available_admin_booths_path