Sha256: 0f02aabf3752493a4e3017d862cb1a68ea315ec092a77b1244f6ff5764bb634d

Contents?: true

Size: 963 Bytes

Versions: 32

Compression:

Stored size: 963 Bytes

Contents

##############################################################################
#                                 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

32 entries across 32 versions & 2 rubygems

Version Path
rspectacular-0.70.4 lib/rspectacular/plugins/vcr.rb
rspectacular-0.70.3 lib/rspectacular/plugins/vcr.rb
rspectacular-0.70.2 lib/rspectacular/plugins/vcr.rb
rspectacular-0.70.1 lib/rspectacular/plugins/vcr.rb
rspectacular-0.70.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.69.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.68.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.67.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.66.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.65.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.64.0 lib/rspectacular/plugins/vcr.rb
rspectacular-0.63.0 lib/rspectacular/plugins/vcr.rb