Skip to content

Commit

Permalink
Don't dump records into temporary file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andyundso committed Jul 26, 2023
1 parent 0c92c20 commit 5baea92
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rspec/openapi/result_recorder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5baea92

Please sign in to comment.