Skip to content

Instantly share code, notes, and snippets.

@nfriend21
Created January 23, 2014 19:00
Show Gist options
  • Save nfriend21/8584673 to your computer and use it in GitHub Desktop.
Save nfriend21/8584673 to your computer and use it in GitHub Desktop.
$ rspec ./spec/features/billboard_spec.rb:19
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
Run options: include {:locations=>{"./spec/features/billboard_spec.rb"=>[19]}}
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
An error occurred in an after hook
VCR::Errors::UnhandledHTTPRequestError:
================================================================================
An HTTP request has been made that VCR does not know how to handle:
GET http://res.cloudinary.com/decosites/image/upload/v1390503578/image_for_testing_ub6wfy.jpg
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/configuration/ignore-request
================================================================================
occurred at /Users/nicholasfriend/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/vcr-2.8.0/lib/vcr/request_handler.rb:97:in `on_unhandled_request'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment