spec/models/dropdown_spec.rb
Block has too many lines. [34/25] Open
Open
describe Dropdown do
let(:dropdown) { build(:dropdown, id: 1) }
let(:questionnaire) { create(:questionnaire, id: 1) }
let(:question1) { create(:question, questionnaire: questionnaire, weight: 1, id: 1, type: 'Criterion') }
let(:response_map) { create(:review_response_map, id: 1, reviewed_object_id: 1) }
- 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.