Sha256: 673615ed788bde16030cf8cfb56b8cb723178d567087f290a0b852883d386d44

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

module CassetteHelper
  def self.extended(base)
    base.around do |spec|
      VCR.insert_cassette(_cassette) if defined?(_cassette) && _cassette
      spec.run
      VCR.eject_cassette if defined?(_cassette) && _cassette
    end
  end

  def cassette(cassette_name)
    let(:_cassette){ cassette_name }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hubspot-ruby-0.9.0 spec/support/cassette_helper.rb
hubspot-ruby-0.8.1 spec/support/cassette_helper.rb
hubspot-ruby-0.8.0 spec/support/cassette_helper.rb
hubspot-ruby-0.7.0 spec/support/cassette_helper.rb
hubspot-ruby-0.6.1 spec/support/cassette_helper.rb
hubspot-ruby-0.6.0 spec/support/cassette_helper.rb