lib/rspec/openapi/rspec_hooks.rb in rspec-openapi-0.16.1 vs lib/rspec/openapi/rspec_hooks.rb in rspec-openapi-0.17.0
- old
+ new
@@ -3,10 +3,10 @@
require 'rspec/core'
RSpec.configuration.after(:each) do |example|
if RSpec::OpenAPI.example_types.include?(example.metadata[:type]) && example.metadata[:openapi] != false
path = RSpec::OpenAPI.path.then { |p| p.is_a?(Proc) ? p.call(example) : p }
- record = RSpec::OpenAPI::RecordBuilder.build(self, example: example)
+ record = RSpec::OpenAPI::RecordBuilder.build(self, example: example, extractor: SharedHooks.find_extractor)
RSpec::OpenAPI.path_records[path] << record if record
end
end
RSpec.configuration.after(:suite) do