Sha256: 78e7ac2d0648fef8772b5a9df22e2d2815237a537abbb73f2e077f3342f0aa8e

Contents?: true

Size: 786 Bytes

Versions: 6

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

require "vcr"
require "webmock/rspec"

VCR.configure do |c|
  c.allow_http_connections_when_no_cassette = true
  c.cassette_library_dir = "spec/fixtures/vcr_cassettes"
  c.hook_into :webmock # or :fakeweb
  c.configure_rspec_metadata!

  %w[
    BTC_WALLET_HOST
    BCH_WALLET_HOST
    ETH_WALLET_HOST
    FIAT_WALLET_HOST
    USDT_WALLET_HOST
    COIN_WALLET_HOST
    MAKER_HOST
    AUTO_BANK_HOST
    MESH_BANKING_HOST
    P2P_BANKING_HOST
    LIQUIDITY_HOST
    ARBITRAGE_HOST
    MESSENGER_PORTAL_HOST
    RENEC_HOST
    AUTOMATE
    SSO_HOST
    REMITTANCE_HOST
  ].each do |env_name|
    c.filter_sensitive_data(env_name) do |_interaction|
      ENV[env_name]
    end
  end

  c.default_cassette_options = { match_requests_on: %i[method path] }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
portal-connectors-0.58.39xc spec/support/vcr.rb
portal-connectors-0.58.39xb spec/support/vcr.rb
portal-connectors-0.58.39xa spec/support/vcr.rb
portal-connectors-0.58.39fj spec/support/vcr.rb
portal-connectors-0.58.39fg spec/support/vcr.rb
portal-connectors-0.58.38xn spec/support/vcr.rb