Skip to content

Instantly share code, notes, and snippets.

@jrochkind
Created February 7, 2017 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrochkind/a6d15e5e43f4c60ce5af49fb449fe390 to your computer and use it in GitHub Desktop.
Save jrochkind/a6d15e5e43f4c60ce5af49fb449fe390 to your computer and use it in GitHub Desktop.
VCR.configure do |c|
c.cassette_library_dir = 'spec/vcr_cassettes'
c.hook_into :webmock # or :fakeweb
c.configure_rspec_metadata!
# Let's you set default VCR mode with VCR=all for re-recording
# episodes. :once is VCR default
record_mode = ENV["VCR"] ? ENV["VCR"].to_sym : :once
c.default_cassette_options = { :record => record_mode }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment