Sha256: 9d3b4e1ed6c52c1d411f0130ad7904d52a36f4b73f8e924de7a2de2ea4992ce6
Contents?: true
Size: 453 Bytes
Versions: 14
Compression:
Stored size: 453 Bytes
Contents
module CassetteHelper def self.extended(base) base.around do |spec| VCR.insert_cassette(_cassette, _cassette_options) if defined?(_cassette) && _cassette spec.run VCR.eject_cassette if defined?(_cassette) && _cassette end end def cassette(*args) options = args.extract_options! let(:_cassette) do |example| args.first || example.full_description end let(:_cassette_options) { options } end end
Version data entries
14 entries across 14 versions & 1 rubygems