Allow Unused HTTP Interactions
Background ()
require 'vcr'
VCR.configure do |c|
c.hook_into :webmock
c.cassette_library_dir = 'cassettes'
end---
http_interactions:
- request:
method: get
uri: http://example.com/foo
body:
encoding: UTF-8
string: ""
headers: {}
response:
status:
code: 200
message: OK
headers:
Content-Length:
- "5"
body:
encoding: UTF-8
string: Hello
http_version: "1.1"
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
recorded_with: VCR 2.0.0Unused HTTP interactions are allowed by default
Error raised if option is false and there are unused interactions
No error raised if option is false and all interactions are used
Does not silence other errors raised in use_cassette block
use_cassette blockLast updated