Skip to content

Commit 83764a7

Browse files
committed
chore: remove unneeded
1 parent dcc6404 commit 83764a7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

spec/spec_helper.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
require 'rspec/its'
44
require 'pry'
55

6-
RspecApiDocumentation.configure do |config|
7-
config.response_body_formatter = lambda do |response_content_type, response_body|
8-
if response_content_type&.include?('application/json')
9-
return JSON.pretty_generate(JSON.parse(response_body))
10-
elsif response_content_type&.include?('text') || response_content_type&.include?('txt')
11-
# quote it for JSON Parser in documentation reader like APITOME
12-
return "\"#{response_body}\""
13-
else
14-
return '[binary data]'
15-
end
16-
rescue JSON::ParserError
17-
'[binary data]'
18-
end
19-
end
20-
216
RSpec.configure do |config|
227
config.before(:all) do
238
if self.class.metadata[:api_doc_dsl] || self.respond_to?(:app)

0 commit comments

Comments
 (0)