spec/models/course_node_spec.rb
Block has too many lines. [87/25] Open
Open
describe CourseNode do
let(:course) { build(:course, id: 1, name: 'ECE517') }
let(:course_node) { build(:course_node, id: 1) }
let(:user1) { User.new name: 'abc', fullname: 'abc bbc', email: 'abcbbc@gmail.com', password: '123456789', password_confirmation: '123456789' }
let(:assignment) { build(:assignment, 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.