mhenrixon/stub_requests

View on GitHub
spec/stub_requests/service_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method describe##initialize (80.5)
Open

  describe "#initialize" do
    subject { service }

    its(:id) { is_expected.to eq(service_id) }
    its(:uri) { is_expected.to eq(service_uri) }
Severity: Minor
Found in spec/stub_requests/service_spec.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method describe(#to_s)::context#when endpoints are registered (37.7)
Open

    context "when endpoints are registered" do
      before { service.register(endpoint_id, verb, path) }

      let(:expected_output) do
        "#<StubRequests::Service id=abstractions uri=https://abstractions.com/v1 endpoints=[" \
Severity: Minor
Found in spec/stub_requests/service_spec.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method describe(#==)::context#when other have same id (24.4)
Open

    context "when `other` have same id" do
      let(:other_id) { service_id }

      specify { expect(service).to eq(other) }
Severity: Minor
Found in spec/stub_requests/service_spec.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method describe(#==)::context#when other has a different id (23.2)
Open

    context "when `other` has a different id" do
      specify { expect(service).not_to eq(other) }
Severity: Minor
Found in spec/stub_requests/service_spec.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status