mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Adds VCR config file into support folder
...with additional options to vcr_setup
This commit is contained in:
11
spec/support/vcr_setup.rb
Normal file
11
spec/support/vcr_setup.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
|
||||
require 'vcr'
|
||||
|
||||
VCR.configure do |config|
|
||||
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
|
||||
config.hook_into :webmock
|
||||
config.default_cassette_options = { record: :once }
|
||||
config.ignore_localhost = true
|
||||
config.configure_rspec_metadata!
|
||||
end
|
||||
Reference in New Issue
Block a user