Sha256: 56d5480cfdb374f4627c18e092cc3a4cf687a96aefcd67dfd840cdaf6d55e785

Contents?: true

Size: 570 Bytes

Versions: 6

Compression:

Stored size: 570 Bytes

Contents

require 'helper'

MinitestVcr::Spec.configure!


describe "with tag metadata", :vcr => {:tag => :bd_finditem} do

  before do
    conn = Faraday.new
    @response = conn.get 'http://example.com'
  end

  it "uses appropraite cassette name" do

    assert ! VCR.current_cassette.nil?, "No current cassette"

    assert ! VCR.current_cassette.name.nil?, "No current cassette name"


    if VCR.current_cassette.name
      (VCR.current_cassette.name.split('/')).must_equal([
        'with tag metadata',
        'uses appropraite cassette name'
      ])
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
minitest-vcr-1.4.0 test/minitest-vcr/metadata_test.rb
minitest-vcr-1.3.0 test/minitest-vcr/metadata_test.rb
minitest-vcr-1.2.2 test/minitest-vcr/metadata_test.rb
minitest-vcr-1.2.1 test/minitest-vcr/metadata_test.rb
minitest-vcr-1.2.0 test/minitest-vcr/metadata_test.rb
minitest-vcr-1.0.1 test/minitest-vcr/metadata_test.rb