Dalphi/dalphi

View on GitHub
spec/requests/services/create_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

RSpec.describe 'Service create', type: :request do
  before(:each) do
    @project = FactoryGirl.create(:project)
    sign_in(@project.admin)
  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.

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

  it 'creates a service with valid data' do
    expect(Service.count).to eq(0)

    interface_type_text_nominal = FactoryGirl.create(:interface_type_text_nominal)
    interface_type_ner_complete = FactoryGirl.create(:interface_type_ner_complete)

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

    interface_type_ner_complete = FactoryGirl.create(:interface_type_ner_complete)

Line is too long. [82/80]
Open

    interface_type_text_nominal = FactoryGirl.create(:interface_type_text_nominal)

Line is too long. [111/80]
Open

    expect(service.interface_types.sort).to eq([interface_type_text_nominal, interface_type_ner_complete].sort)

There are no issues that match your filters.

Category
Status