Created
May 8, 2013 08:45
-
-
Save brenes/5539121 to your computer and use it in GitHub Desktop.
VCR basic config
This file contains hidden or 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
| 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