Dalphi/dalphi

View on GitHub
spec/requests/interfaces/update_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

RSpec.describe 'Interface update', type: :request do
  before(:each) do
    @project = FactoryGirl.create(:project)
    @interface = FactoryGirl.create(:interface)
    sign_in(@project.admin)

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. [87/80]
Open

    expect(interface.associated_problem_identifiers.sort).to eq(%w(ner super_ner).sort)

Line is too long. [100/80]
Open

    expect(Paperclip.io_adapters.for(interface.template).read).to eq('<div class="test">test</div>')

Line is too long. [95/80]
Open

    expect(Paperclip.io_adapters.for(interface.java_script).read).to eq('console.log("test");')

%w-literals should be delimited by [ and ].
Open

    expect(interface.associated_problem_identifiers.sort).to eq(%w(ner super_ner).sort)

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Line is too long. [105/80]
Open

    expect(Paperclip.io_adapters.for(interface.stylesheet).read).to eq('div { background-color: aqua; }')

There are no issues that match your filters.

Category
Status