Sha256: e5742b08390421deeee6bbcb15596491013290acb469e0c6c2488fac92a41c4d
Contents?: true
Size: 941 Bytes
Versions: 20
Compression:
Stored size: 941 Bytes
Contents
# frozen_string_literal: true require "vcr" VCR.configure do |config| config.hook_into :webmock config.allow_http_connections_when_no_cassette = false config.ignore_localhost = true config.ignore_host "chromedriver.storage.googleapis.com" config.cassette_library_dir = File.expand_path("../cassettes", __dir__) <% if rspec? -%> config.configure_rspec_metadata! <% end -%> config.default_cassette_options = { # Enable automatic expiration and re-recording of cassettes # re_record_interval: 1.week, record: ENV["CI"] ? :none : :once, record_on_error: false, match_requests_on: %i[method uri body] } # Make sure headers containing secrets aren't recorded in cassettes and stored in git %w[Authorization X-Api-Key].each do |sensitive_header| config.filter_sensitive_data("[#{sensitive_header.upcase}]") do |interaction| interaction.request.headers[sensitive_header]&.first end end end
Version data entries
20 entries across 20 versions & 1 rubygems