Rubocop autocorrections
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -87,7 +87,6 @@ feature 'Admin settings' do
|
||||
expect(page).to have_content "Map configuration updated succesfully"
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user