spec/models/poll/shift_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [120/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:poll_shift, booth: booth, officer: officer, date: Date.current, task: :vote_collection)).to be_valid
Severity: Minor
Found in spec/models/poll/shift_spec.rb by rubocop

Line is too long. [121/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

  let(:recount_shift) { build(:poll_shift, booth: booth, officer: officer, date: Date.current, task: :recount_scrutiny) }
Severity: Minor
Found in spec/models/poll/shift_spec.rb by rubocop

Line is too long. [122/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:poll_shift, booth: booth, officer: officer, date: Date.tomorrow, task: :recount_scrutiny)).to be_valid
Severity: Minor
Found in spec/models/poll/shift_spec.rb by rubocop

Line is too long. [125/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(build(:poll_shift, booth: booth, officer: officer, date: Date.current, task: :recount_scrutiny)).not_to be_valid
Severity: Minor
Found in spec/models/poll/shift_spec.rb by rubocop

Line is too long. [140/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect { create(:poll_shift, booth: booth, officer: officer, date: Date.current) }.to change {Poll::OfficerAssignment.all.count}.by(2)
Severity: Minor
Found in spec/models/poll/shift_spec.rb by rubocop

Line is too long. [114/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      create(:poll_officer_assignment, officer: officer, booth_assignment: booth_assignment1, date: Date.tomorrow)
Severity: Minor
Found in spec/models/poll/shift_spec.rb by rubocop

There are no issues that match your filters.

Category
Status