# frozen_string_literal: true

module VcrHelper
  require 'vcr'

  VCR.configure do |config|
    config.cassette_library_dir = 'test/vcr_cassettes'
    config.hook_into :webmock

    config.ignore_localhost = true
    config.debug_logger = File.open(Rails.root.join('log', 'vcr.log'), 'w')
  end
end
