Complex method describe(#register)::context#with existing callbacks (31.4) Open
context "with existing callbacks" do
before do
registry.register(service_id, endpoint_id, verb, callback)
end
- 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(#unregister)::context#with existing callbacks (27.0) Open
context "with existing callbacks" do
before do
registry.register(service_id, endpoint_id, verb, callback)
end
- 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(#register)::context#with existing difference callbacks (26.1) Open
context "with existing difference callbacks" do
before do
registry.register(:another, :endpoint, :any, callback)
end
- 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(#register)::context#without existing callbacks (22.1) Open
context "without existing callbacks" do
it! { is_expected.to change(registry.callbacks, :size).by(1) }
it { is_expected.to be_a(StubRequests::Callback) }
its(:service_id) { is_expected.to eq(service_id) }
- 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(#invoke_callbacks)::context#with existing callbacks (21.8) Open
context "with existing callbacks" do
before do
registry.register(service_id, endpoint_id, verb, callback)
allow(callback).to receive(:call)
end
- 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