Skip to content

Commit

Permalink
chore: check coverage after suite, not all
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 18, 2023
1 parent eb42711 commit fbacadf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions spec/support/openapi_first/pact_broker_coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/support/shared_context_for_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbacadf

Please sign in to comment.