spec/requests/interfaces/update_spec.rb
Block has too many lines. [51/25] Open
Open
RSpec.describe 'Interface update', type: :request do
before(:each) do
@project = FactoryGirl.create(:project)
@interface = FactoryGirl.create(:interface)
sign_in(@project.admin)
- 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.
Line is too long. [87/80] Open
Open
expect(interface.associated_problem_identifiers.sort).to eq(%w(ner super_ner).sort)
- Exclude checks
Line is too long. [100/80] Open
Open
expect(Paperclip.io_adapters.for(interface.template).read).to eq('<div class="test">test</div>')
- Exclude checks
Line is too long. [95/80] Open
Open
expect(Paperclip.io_adapters.for(interface.java_script).read).to eq('console.log("test");')
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
Open
expect(interface.associated_problem_identifiers.sort).to eq(%w(ner super_ner).sort)
- Read upRead up
- Exclude checks
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
Open
expect(Paperclip.io_adapters.for(interface.stylesheet).read).to eq('div { background-color: aqua; }')
- Exclude checks