spec/models/scale_spec.rb
Block has too many lines. [27/25] Open
Open
describe 'scale' do
let(:questionnaire) { Questionnaire.new min_question_score: 0, max_question_score: 5 }
let(:scale) { Scale.new id: 1, type: 'Scale', seq: 1.0, txt: 'test txt', weight: 1, questionnaire: questionnaire }
let(:answer) { Answer.new answer: 8 }
- 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.