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

Version Path
nextgen-0.31.0 template/test/support/vcr.rb.tt
nextgen-0.30.0 template/test/support/vcr.rb.tt
nextgen-0.29.0 template/test/support/vcr.rb.tt
nextgen-0.28.2 template/test/support/vcr.rb.tt
nextgen-0.28.1 template/test/support/vcr.rb.tt
nextgen-0.28.0 template/test/support/vcr.rb.tt
nextgen-0.27.1 template/test/support/vcr.rb.tt
nextgen-0.27.0 template/test/support/vcr.rb.tt
nextgen-0.26.0 template/test/support/vcr.rb.tt
nextgen-0.25.0 template/test/support/vcr.rb.tt
nextgen-0.24.0 template/test/support/vcr.rb.tt
nextgen-0.23.0 template/test/support/vcr.rb.tt
nextgen-0.22.0 template/test/support/vcr.rb.tt
nextgen-0.21.0 template/test/support/vcr.rb.tt
nextgen-0.20.0 template/test/support/vcr.rb.tt
nextgen-0.19.0 template/test/support/vcr.rb.tt
nextgen-0.18.0 template/test/support/vcr.rb.tt
nextgen-0.17.1 template/test/support/vcr.rb.tt
nextgen-0.17.0 template/test/support/vcr.rb.tt
nextgen-0.16.0 template/test/support/vcr.rb.tt