spec/models/duty_spec.rb
Block has too many lines. [38/25] Open
Open
describe Duty do
let(:assignment) { build(:assignment, id: 1, name: 'no assgt') }
let(:participant) { build(:participant, id: 1, user_id: 1) }
let(:participant2) { build(:participant, id: 2, user_id: 2) }
let(:participant3) { build(:participant, id: 3, user_id: 3) }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.