Sha256: 2ddde7088df15be3f081199ea30c323d6fb2c49e11ddeddd996e8288ab45af4e

Contents?: true

Size: 659 Bytes

Versions: 18

Compression:

Stored size: 659 Bytes

Contents

require "vcr"

VCR.configure do |vcr|
  vcr.cassette_library_dir = File.join(File.dirname(__FILE__), "../cassettes")
  vcr.allow_http_connections_when_no_cassette = false
  vcr.hook_into :webmock

  vcr.configure_rspec_metadata!
  vcr.default_cassette_options = {
    :record => :none,
    # :record => :new_episodes,
    :match_requests_on => %i[method path body],
    :update_content_length_header => true
  }

  # Gives lots of clues about how VCR is running
  # vcr.debug_logger = $stderr

  vcr.before_record do |interaction|
    host = URI.parse(interaction.request.uri).host
    interaction.request.uri.gsub!(host, "api.brightbox.localhost")
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0 spec/support/vcr.rb
brightbox-cli-5.0.0.rc2 spec/support/vcr.rb
brightbox-cli-5.0.0.rc1 spec/support/vcr.rb
brightbox-cli-5.0.0.alpha spec/support/vcr.rb
brightbox-cli-4.8.0 spec/support/vcr.rb
brightbox-cli-4.7.0 spec/support/vcr.rb
brightbox-cli-4.6.0 spec/support/vcr.rb
brightbox-cli-4.5.0 spec/support/vcr.rb
brightbox-cli-4.5.0.rc1 spec/support/vcr.rb
brightbox-cli-4.4.0 spec/support/vcr.rb
brightbox-cli-4.3.2 spec/support/vcr.rb
brightbox-cli-4.3.1 spec/support/vcr.rb
brightbox-cli-4.3.0 spec/support/vcr.rb
brightbox-cli-4.2.1 spec/support/vcr.rb
brightbox-cli-4.2.0 spec/support/vcr.rb
brightbox-cli-4.1.0 spec/support/vcr.rb
brightbox-cli-4.0.0 spec/support/vcr.rb
brightbox-cli-4.0.0.rc2 spec/support/vcr.rb