spec/models/checkbox_spec.rb
Block has too many lines. [29/25] Open
Open
describe Checkbox do
let!(:checkbox) { Checkbox.new id: 10, type: 'Checkbox', seq: 1.0, txt: 'test txt', weight: 11 }
let!(:answer) { Answer.new answer: 1 }
let!(:checkbox1) { Checkbox.create(id: 1, type: 'Checkbox', seq: 2.0, txt: 'test txt2', weight: 11) }
let!(:checkbox2) { Checkbox.create(id: 2, type: 'Checkbox', seq: 3.0, txt: 'test txt3', weight: 12) }
- 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.