Sha256: 1320aab0aadb74a66672edc5c166619e4f2b474331d074102d8da40e92b760a8

Contents?: true

Size: 993 Bytes

Versions: 5

Compression:

Stored size: 993 Bytes

Contents

# frozen_string_literal: true
##############################################################################
#                                 VCR Plugin
##############################################################################

begin
  require 'vcr'
  Dir[File.expand_path('../../vcr_matchers/**/*.rb', __FILE__)].each { |f| require f }

  begin
    require 'webmock'

    VCR.configure do |config|
      config.hook_into :webmock
    end
  rescue LoadError
  end

  begin
    require 'faraday'

    VCR.configure do |config|
      config.hook_into :faraday
    end
  rescue LoadError
  end

  VCR.configure do |config|
    config.ignore_hosts 'lvh.me', 'localhost', '127.0.0.1', '0.0.0.0'
    config.cassette_library_dir = File.expand_path('./tmp/vcr_cassettes')

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

    config.configure_rspec_metadata!
  end
rescue LoadError
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspeckled-0.0.21 lib/rspeckled/plugins/vcr.rb
rspeckled-0.0.20 lib/rspeckled/plugins/vcr.rb
rspeckled-0.0.19 lib/rspeckled/plugins/vcr.rb
rspeckled-0.0.18 lib/rspeckled/plugins/vcr.rb
rspeckled-0.0.17 lib/rspeckled/plugins/vcr.rb