Skip to content

Commit

Permalink
Merge pull request #26 from bf4/patch-1
Browse files Browse the repository at this point in the history
Rails 6.1 deprecates content_type in favor of media_type
  • Loading branch information
k0kubun committed Jun 12, 2021
2 parents 4c60419 + 9a7bf16 commit 77cdfd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/openapi/record_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ def build(context, example:)
path_params: raw_path_params(request),
query_params: request.query_parameters,
request_params: raw_request_params(request),
request_content_type: request.content_type,
request_content_type: request.media_type,
summary: summary,
tags: tags,
description: RSpec::OpenAPI.description_builder.call(example),
status: response.status,
response_body: response_body,
response_content_type: response.content_type,
response_content_type: response.media_type,
response_content_disposition: response.header["Content-Disposition"],
).freeze
end
Expand Down

0 comments on commit 77cdfd7

Please sign in to comment.