# 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