Dalphi/dalphi

View on GitHub
spec/features/project_selection_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

feature 'Project selection from projects index view' do
  before(:each) do
    @project = FactoryGirl.create(:project_with_annotator)
  end

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.

Line is too long. [81/80]
Open

    describe 'Visiting the annotation view after clicking on a listed project' do

Line is too long. [91/80]
Open

        annotation_document = FactoryGirl.create(:annotation_document_with_different_admin)

include is used at the top level. Use inside class or module.
Open

include Warden::Test::Helpers

This cop checks that include, extend and prepend exists at the top level. Using these at the top level affects the behavior of Object. There will not be using include, extend and prepend at the top level. Let's use it inside class or module.

Example:

# bad
include M

class C
end

# bad
extend M

class C
end

# bad
prepend M

class C
end

# good
class C
  include M
end

# good
class C
  extend M
end

# good
class C
  prepend M
end

Line is too long. [87/80]
Open

    scenario 'Visiting the project\'s show view after clicking on a listed project.' do

There are no issues that match your filters.

Category
Status