spec/helpers/grades_helper_spec.rb
Block has too many lines. [29/25] Open
Open
describe GradesHelper, type: :helper do
describe 'get_accordion_title' do
it 'should render is_first:true if last_topic is nil' do
get_accordion_title(nil, 'last question')
expect(response).to render_template(partial: 'response/_accordion', locals: {title: 'last question', is_first: true})
- 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.