Sha256: b315df9b5566a16237ffc09be24336b3a87ea659e0bd7859836ad6a91e698978
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true VCR.configure do |config| config.ignore_localhost = true config.cassette_library_dir = "spec/fixtures/vcr_cassettes" config.hook_into :webmock config.configure_rspec_metadata! config.filter_sensitive_data('<API_KEY>') do |interaction| interaction.request.headers['X-API-KEY']&.first end config.filter_sensitive_data('<PUBLISHABLE_KEY>') do |interaction| interaction.request.headers['X-Publishable-Key']&.first end config.filter_sensitive_data('<BEARER AUTHORIZATION>') do |interaction| interaction.request.headers['Authorization']&.first end config.filter_sensitive_data('<PUBLISHABLE_KEY>') { SolidusBolt::BoltConfiguration.fetch.publishable_key } config.filter_sensitive_data('<API_KEY>') { SolidusBolt::BoltConfiguration.fetch.api_key } # Let's you set default VCR record mode with VCR_RECORDE_MODE=all for re-recording # episodes. :once is VCR default record_mode = ENV.fetch('VCR_RECORD_MODE', :once).to_sym config.default_cassette_options = { record: record_mode } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_bolt-0.4.0 | spec/support/vcr.rb |
solidus_bolt-0.3.0 | spec/support/vcr.rb |