spec/models/tag_prompt_spec.rb
Block has too many lines. [41/25] Open
Open
describe TagPrompt do
let(:ct_criterion) { Criterion.new id: 1, type: 'Criterion', seq: 1.0, txt: 'test txt', weight: 1 }
let(:ct_cbox) { Checkbox.new id: 1, type: 'Checkbox', seq: 1.0, txt: 'test txt', weight: 1 }
let(:ct_text) { TextArea.new id: 1, type: 'TextArea', seq: 1.0, txt: 'test txt', weight: 1 }
let(:an_long) { Answer.new question: ct_criterion, answer: 5, comments: 'test comments' }
- 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.