Sha256: ba22f6054a09985778a220d806fdd4e4373d3e9aaff97f9f4c87bd484c78ce81

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

require 'vcr'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
  c.hook_into :webmock
  c.configure_rspec_metadata!

  # Filter Rails secrets that are strings or numbers
  secrets_to_filter = Rails.application.secrets.select do |key, value|
    value.is_a?(String) || value.is_a?(Numeric)
  end
  secrets_to_filter.each do |key, value|
    c.filter_sensitive_data("<#{key.upcase}>") { value }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/files/spec/support/vcr.rb
pah-0.0.27 lib/pah/files/spec/support/vcr.rb
pah-0.0.26 lib/pah/files/spec/support/vcr.rb
pah-0.0.25 lib/pah/files/spec/support/vcr.rb
pah-0.0.24 lib/pah/files/spec/support/vcr.rb
pah-0.0.23 lib/pah/files/spec/support/vcr.rb
pah-0.0.22 lib/pah/files/spec/support/vcr.rb
pah-0.0.21 lib/pah/files/spec/support/vcr.rb
pah-0.0.20 lib/pah/files/spec/support/vcr.rb
pah-0.0.19 lib/pah/files/spec/support/vcr.rb
pah-0.0.17 lib/pah/files/spec/support/vcr.rb
pah-0.0.16 lib/pah/files/spec/support/vcr.rb