Skip to content

Commit

Permalink
Merge pull request #127 from andyundso/remove-tmp-records
Browse files Browse the repository at this point in the history
Don't dump records into temporary file
  • Loading branch information
exoego committed Aug 15, 2023
2 parents 7a6fda3 + 5baea92 commit ada8ce3
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 ada8ce3

Please sign in to comment.