ece517-p3/expertiza

View on GitHub
spec/rails_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [77/25]
Open

RSpec.configure do |config|
  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
  # config.fixture_path = "#{::Rails.root}/spec/fixtures"

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
Severity: Minor
Found in spec/rails_helper.rb by rubocop

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.

Please use Rails.root.join('path', 'to') instead.
Open

Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f }
Severity: Minor
Found in spec/rails_helper.rb by rubocop

This cop is used to identify usages of file path joining process to use Rails.root.join clause.

Example:

# bad Rails.root.join('app/models/goober') File.join(Rails.root, 'app/models/goober') "#{Rails.root}/app/models/goober"

# good Rails.root.join('app', 'models', 'goober')

Optional arguments should appear at the end of the argument list.
Open

  def stub_current_user(current_user, current_role_name = 'Student', current_role)
Severity: Minor
Found in spec/rails_helper.rb by rubocop

This cop checks for optional arguments to methods that do not come at the end of the argument list

Example:

# bad
def foo(a = 1, b, c)
end

# good
def baz(a, b, c = 1)
end

def foobar(a = 1, b = 2, c = 3)
end

There are no issues that match your filters.

Category
Status