spec/models/on_the_fly_calc_spec.rb
Block has too many lines. [69/25] Open
Open
describe OnTheFlyCalc do
let(:on_the_fly_calc) { Class.new { extend OnTheFlyCalc } }
let(:questionnaire) { create(:questionnaire, id: 1) }
let(:question1) { create(:question, questionnaire: questionnaire, weight: 1, id: 1) }
let(:response) { build(:response, id: 1, map_id: 1, scores: [answer]) }
- 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.