Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 728 Bytes
Feature: cassette_library_dir
The `cassette_library_dir` configuration option sets a directory
where VCR saves each cassette.
Scenario: cassette_library_dir
Given a file named "cassette_library_dir.rb" with:
start_sinatra_app(:port => 7777) do
get('/') { "Hello" }
require 'vcr'
VCR.configure do |c|
c.cassette_library_dir = 'vcr/cassettes'
c.hook_into :fakeweb
VCR.use_cassette('localhost') do
Net::HTTP.get_response('localhost', '/', 7777)
And the directory "vcr/cassettes" does not exist
When I run `ruby cassette_library_dir.rb`
Then the file "vcr/cassettes/localhost.yml" should exist
Something went wrong with that request. Please try again.