Sha256: 0a62def63d596c9f9720fee8598db837344fe4bed37f2254b4842c30c43c953d
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 KB
Contents
require "helper" MinitestVcr::Spec.configure! describe MinitestVcr::Spec do describe 'a describe with metadata', :vcr do describe 'with a nested example group' do before do conn = Faraday.new @response = conn.get 'http://example.com' end it 'uses a cassette for any examples' do (VCR.current_cassette.name.split('/')).must_equal([ 'MinitestVcr::Spec', 'a describe with metadata', 'with a nested example group', 'uses a cassette for any examples' ]) end end end describe 'an it with metadata' do describe 'with a nested example group' do before do conn = Faraday.new @response = conn.get 'http://example.com' end it 'uses a cassette for any examples', :vcr do (VCR.current_cassette.name.split('/')).must_equal([ 'MinitestVcr::Spec', 'an it with metadata', 'with a nested example group', 'uses a cassette for any examples' ]) end it 'can supply metadata', vcr: {record: :all} do VCR.current_cassette.record_mode.must_equal :all end end end describe "#configure!", :vcr do before do ::MiniTest::Spec.expects(:before).with(:each) ::MiniTest::Spec.expects(:after).with(:each) end it "should call before and after with proper args and block" do MinitestVcr::Spec.configure! end end end
Version data entries
5 entries across 5 versions & 1 rubygems