diff --git a/spec/support/openapi_first/pact_broker_coverage.rb b/spec/support/openapi_first/pact_broker_coverage.rb index 8b1305cdb..f2e99bfe6 100644 --- a/spec/support/openapi_first/pact_broker_coverage.rb +++ b/spec/support/openapi_first/pact_broker_coverage.rb @@ -28,8 +28,6 @@ def self.build_endpoints_list(spec) end end - private - def self.endpoint_id(operation, status) "#{operation.path}##{operation.method} #{status}" end diff --git a/spec/support/shared_context_for_app.rb b/spec/support/shared_context_for_app.rb index 15edde3e0..1de3af135 100644 --- a/spec/support/shared_context_for_app.rb +++ b/spec/support/shared_context_for_app.rb @@ -9,7 +9,7 @@ endpoints_to_be_called = OpenapiFirst::PactBrokerCoverage.build_endpoints_list(OpenapiFirst.load("pact_broker_oas.yaml")) RSpec.configure do | config | - config.after(:all) do + config.after(:suite) do if endpoints_to_be_called.any? raise "Missing coverage of #{endpoints_to_be_called.join("\n")}" end