Block has too many lines. [244/25] Open
describe TreeDisplayController do
# Airbrake-1517247902792549741
describe '#list' do
it 'should not redirect if current user is an instructor' do
user = build(:instructor)
- 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. [154/25] Open
describe 'GET #get_folder_contents for TA' do
before(:each) do
@treefolder = TreeFolder.new
@treefolder.parent_id = nil
@treefolder.name = 'Courses'
- 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. [41/25] Open
describe 'GET #get_folder_contents' do
before(:each) do
@treefolder = TreeFolder.new
@treefolder.parent_id = nil
@treefolder.name = 'Courses'
- 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. [29/25] Open
before(:each) do
@treefolder = TreeFolder.new
@treefolder.parent_id = nil
@treefolder.name = 'Courses'
@treefolder.child_type = 'CourseNode'
- 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.
Duplicated key in hash literal. Open
get :get_folder_contents, session: request_params, session: user_session
- Read upRead up
- Exclude checks
This cop checks for duplicated keys in hash literals.
This cop mirrors a warning in Ruby 2.2.
Example:
# bad
hash = { food: 'apple', food: 'orange' }
Example:
# good
hash = { food: 'apple', other_food: 'orange' }