spec/models/vm_question_response_row_spec.rb
Block has too many lines. [69/25] Open
Open
describe VmQuestionResponseRow do
let(:row) { VmQuestionResponseRow.new('Question for testing average score', 1, 1, 5, 1) }
describe '#average_score_for_row' do
it 'returns correct average score for all not nil scores' do
- 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.
Block has too many lines. [66/25] Open
Open
describe '#average_score_for_row' do
it 'returns correct average score for all not nil scores' do
score1 = VmQuestionResponseScoreCell.new(5, '#D98880', 'Case_2_score_value1 = 5')
score2 = VmQuestionResponseScoreCell.new(4, '#CD6155', 'Case_2_score_value2 = 4')
score3 = VmQuestionResponseScoreCell.new(3, '#C0392B', 'Case_2_score_value3 = 3')
- 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.