Skip to content

Instantly share code, notes, and snippets.

@SethThomas
Created September 13, 2012 19:48
Show Gist options
  • Save SethThomas/3717095 to your computer and use it in GitHub Desktop.
Save SethThomas/3717095 to your computer and use it in GitHub Desktop.
VCR config
VCR.configure do |c|
c.cassette_library_dir = Rails.root.join("spec", "vcr")
c.hook_into :fake web
# do not alow the API key to be stored in the cassette
c.filter_sensitive_data('API KEY HERE') {config['api_key']}
# I think the following config should do what you want
c.allow_http_connections_when_no_cassette = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment