Dalphi/dalphi

View on GitHub
spec/requests/services_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

RSpec.describe "Service registration", type: :request do
  before(:each) do
    Service.destroy_all
    admin = FactoryGirl.build(:admin)
    sign_in(admin)
Severity: Minor
Found in spec/requests/services_spec.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.

Line is too long. [94/80]
Open

             description: 'An iterate dummy service that just implements the Who Are You API',
Severity: Minor
Found in spec/requests/services_spec.rb by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

RSpec.describe "Service registration", type: :request do
Severity: Minor
Found in spec/requests/services_spec.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Line is too long. [94/80]
Open

             description: 'An iterate dummy service that just implements the Who Are You API',
Severity: Minor
Found in spec/requests/services_spec.rb by rubocop

There are no issues that match your filters.

Category
Status