From d228091b5ee91b99aa8f367bddeb450f5480ed46 Mon Sep 17 00:00:00 2001 From: Rafe Rosen Date: Sun, 30 Jan 2022 12:26:41 -0500 Subject: [PATCH] Remove deprecation warning in rails 7 --- lib/rspec/apidoc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rspec/apidoc.rb b/lib/rspec/apidoc.rb index ae2318c..83ad2d5 100644 --- a/lib/rspec/apidoc.rb +++ b/lib/rspec/apidoc.rb @@ -119,7 +119,7 @@ def self.add(spec, example) action_name: action_name, action_comment: action_comment, - content_type: spec.request.content_type, + content_type: spec.request.media_type, auth_header: auth_header(spec.request.headers), method: spec.request.method, path: spec.request.path, @@ -127,7 +127,7 @@ def self.add(spec, example) request_body: request_body, status: spec.response.status, - response_content_type: spec.response.content_type, + response_content_type: spec.response.media_type, response_body: response_body } end