Created
August 11, 2016 23:05
-
-
Save ClayShentrup/7e9200a9a0dcbb36c2d8631eea0acd3e to your computer and use it in GitHub Desktop.
vcr_setup.rb
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
# frozen_string_literal: true | |
require('vcr') | |
VCR.configure do |config| | |
config.cassette_library_dir = 'spec/cassettes' | |
config.hook_into :webmock | |
config.configure_rspec_metadata! | |
config.ignore_localhost = true | |
# Don't change this here! Instead, to record an initial cassette, | |
# do this in your spec: | |
# describe SomeThing, vcr: { record: :new_episodes } | |
# Then, once the cassette is recorded, change it to this: | |
# describe Something, :vcr | |
config.default_cassette_options = { record: :none } | |
# Allow Code Climate gem to send test info for CI integration | |
config.ignore_hosts 'codeclimate.com' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment