Sha256: a166fa211ec64df8f7a182389b0fa27723c586d3b05e5400ba9da29f36ed4137
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 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 end end describe "#configure!", :vcr do before do ::MiniTest::Spec.expects(:before).with(:each).returns(:true) ::MiniTest::Spec.expects(:after).with(:each).returns(true) end it "should call before and after with proper args and block" do MinitestVcr::Spec.configure! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-vcr-0.0.2 | test/minitest-vcr/spec_test.rb |