Skip to content

Instantly share code, notes, and snippets.

@ClayShentrup
Created August 11, 2016 23:05
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 ClayShentrup/7e9200a9a0dcbb36c2d8631eea0acd3e to your computer and use it in GitHub Desktop.
Save ClayShentrup/7e9200a9a0dcbb36c2d8631eea0acd3e to your computer and use it in GitHub Desktop.
vcr_setup.rb
# 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