Sha256: d6c8dfd741b977d22bffb076dbd310795b3ac8deed83e8c99c9aab04f348a35a

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

# typed: true
# frozen_string_literal: true

module EML
  module Helpers
    module VCR
      extend T::Sig

      RE_RECORD_INTERVAL = T.let(86_400, Integer)

      sig { params(path: String).void }
      def self.with_cassette(path)
        ::VCR.use_cassette(path, re_record_interval: RE_RECORD_INTERVAL) do
          yield
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eml-1.0.0 spec/helpers/vcr_helper.rb