Sha256: 685f0ab2b1b4a89443ca07be1f602440e4b8a6e650b47987239d5a0bb49cfa9c

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

require "vcr"

def vcr_record_mode
  if ENV["VCR_RECORD"] == "1"
    :new_episodes
  else
    :none
  end
end

VCR.configure do |c|
  c.cassette_library_dir = "#{RSPEC_ROOT}/fixtures/vcr_cassettes"
  c.hook_into :webmock
  c.default_cassette_options = { record: vcr_record_mode }
  c.filter_sensitive_data("<HAPI_KEY>") { ENV.fetch("HUBSPOT_HAPI_KEY", "demo") }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hubspot-api-ruby-0.8.1 spec/support/vcr.rb
hubspot-api-ruby-0.8.0 spec/support/vcr.rb