We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc6404 commit 83764a7Copy full SHA for 83764a7
spec/spec_helper.rb
@@ -3,21 +3,6 @@
3
require 'rspec/its'
4
require 'pry'
5
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
19
-end
20
-
21
RSpec.configure do |config|
22
config.before(:all) do
23
if self.class.metadata[:api_doc_dsl] || self.respond_to?(:app)
0 commit comments