Skip to content

Instantly share code, notes, and snippets.

@brentd
Created September 30, 2012 00:09
Show Gist options
  • Save brentd/3805455 to your computer and use it in GitHub Desktop.
Save brentd/3805455 to your computer and use it in GitHub Desktop.
Useful for monitoring/debugging requests when using VCR
VCR.configure do |c|
c.after_http_request do |request, response|
puts "\n\n#{request.method.upcase} #{request.uri}"
puts
puts caller.grep(/^#{Rails.root}/)
puts
puts request.to_yaml
puts
puts response.to_yaml
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment