Sha256: 19e55b575cf62a44987c9080ef361573ac929e40fcc7d1dfd5180e891b6f7d91

Contents?: true

Size: 814 Bytes

Versions: 2

Compression:

Stored size: 814 Bytes

Contents

# frozen_string_literal: true

if defined?(::WebMock)
  ::VCR.configure do |config|
    config.hook_into :webmock
  end
end

if defined?(::Faraday)
  ::VCR.configure do |config|
    config.hook_into :faraday
  end
end

::VCR.configure do |config|
  cassette_path = ::File.expand_path('./tmp/vcr_cassettes')

  config.ignore_hosts 'lvh.me', 'localhost', '127.0.0.1', '0.0.0.0'

  # So that the Code Climate coverage reporter (if installed) can send reports
  # even though VCR is enabled.
  config.ignore_hosts 'codeclimate.com'

  config.cassette_library_dir                    = cassette_path
  config.allow_http_connections_when_no_cassette = true

  config.default_cassette_options                = {
    record:             :once,
    re_record_interval: 7_776_000,
  }

  config.configure_rspec_metadata!
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/configuration/vcr.rb
rspeckled-2.1.0 lib/rspeckled/plugins/configuration/vcr.rb