Created
February 7, 2017 22:13
-
-
Save jrochkind/a6d15e5e43f4c60ce5af49fb449fe390 to your computer and use it in GitHub Desktop.
This file contains 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.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