spec/stub_requests/service_spec.rb
Complex method describe##initialize (80.5) Open
Open
describe "#initialize" do
subject { service }
its(:id) { is_expected.to eq(service_id) }
its(:uri) { is_expected.to eq(service_uri) }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
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=[" \
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
context "when `other` have same id" do
let(:other_id) { service_id }
specify { expect(service).to eq(other) }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
context "when `other` has a different id" do
specify { expect(service).not_to eq(other) }
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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