Created
September 30, 2012 00:09
-
-
Save brentd/3805455 to your computer and use it in GitHub Desktop.
Useful for monitoring/debugging requests when using VCR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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