From 5baea9253bd03b25c833f7e76844f4d56cb809c5 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Wed, 26 Jul 2023 12:57:07 +0200 Subject: [PATCH] Don't dump records into temporary file I browsed the source code the other day and found this statement. As it is referenced nowhere else in the code, I assume it was used for debugging purposes when implementing the Minitest support and is therefore no longer necessary. --- lib/rspec/openapi/result_recorder.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rspec/openapi/result_recorder.rb b/lib/rspec/openapi/result_recorder.rb index 9a2ec890..1ff6b560 100644 --- a/lib/rspec/openapi/result_recorder.rb +++ b/lib/rspec/openapi/result_recorder.rb @@ -15,7 +15,6 @@ def record_results! RSpec::OpenAPI::SchemaMerger.merge!(spec, schema) new_from_zero = {} records.each do |record| - File.open('/tmp/records', 'a') { |f| f.puts record.to_yaml } begin record_schema = RSpec::OpenAPI::SchemaBuilder.build(record) RSpec::OpenAPI::SchemaMerger.merge!(spec, record_schema)