Sha256: 552094affa3d68e05e6d9de3e4504e1b2f0b3fe4b3bdd3f9ea7cf70540e6e4d3
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 Bytes
Contents
require "vcr" require "minispec-metadata" require "extensions/string" module MinitestVcr module Spec def self.configure! run_before = lambda do |example| VCR.insert_cassette example.class.name.vcr_path(example, spec_name) if metadata[:vcr] end run_after = lambda do |example| ::VCR.eject_cassette if metadata[:vcr] end ::MiniTest::Spec.before :each, &run_before ::MiniTest::Spec.after :each, &run_after end end # Spec end # MinitestVcr
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minitest-vcr-0.0.4 | lib/minitest-vcr/spec.rb |
minitest-vcr-0.0.3 | lib/minitest-vcr/spec.rb |