Skip to content

Instantly share code, notes, and snippets.

@brenes
Created May 8, 2013 08:45
Show Gist options
  • Select an option

  • Save brenes/5539121 to your computer and use it in GitHub Desktop.

Select an option

Save brenes/5539121 to your computer and use it in GitHub Desktop.
VCR basic config
require 'vcr'
VCR.configure do |c|
c.cassette_library_dir = 'spec/fixtures/vcr/'
c.hook_into :webmock # or :fakeweb
c.allow_http_connections_when_no_cassette = true
c.configure_rspec_metadata!
c.default_cassette_options = { :record => :new_episodes, :erb => true, :match_requests_on => [:path] }
c.ignore_request do |request|
uri = URI(request.uri)
uri.host == '127.0.0.1'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment