Module: Apress::Api::Rspec::Utils

Defined in:
lib/apress/api/rspec/utils.rb

Instance Method Summary collapse

Instance Method Details

#dump_responseObject



8
9
10
11
12
13
14
# File 'lib/apress/api/rspec/utils.rb', line 8

def dump_response
  <<-EOS.strip_heredoc
    Request: #{request.method} #{request.original_url}
    Status: #{response.code}
    #{JSON.pretty_generate(JSON.parse(response.body.to_s))}
  EOS
end