Skip to content

Instantly share code, notes, and snippets.

@carlflor
Last active March 7, 2017 06:56
Show Gist options
  • Save carlflor/64f8b95a295011fa89440168b8aa9b23 to your computer and use it in GitHub Desktop.
Save carlflor/64f8b95a295011fa89440168b8aa9b23 to your computer and use it in GitHub Desktop.
#sample setup for vcr gem
#spec/support/vcr.rb
require 'vcr'
VCR.configure do |c|
c.cassette_library_dir = 'spec/support/cassettes'
c.hook_into :webmock
c.ignore_localhost = true
c.configure_rspec_metadata!
c.allow_http_connections_when_no_cassette = true
#c.default_cassette_options = { :record => :new_episodes}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment