Sha256: 51010aded8e89ac407366234f4b9bc03c5e1c94613516f4d8b8b0d2cd5415a68

Contents?: true

Size: 740 Bytes

Versions: 5

Compression:

Stored size: 740 Bytes

Contents

require 'vcr'

real_requests = ENV['VCR_ALLOW_ACTUAL_REQUESTS']

VCR.configure do |c|
  c.allow_http_connections_when_no_cassette = true if real_requests
  c.cassette_library_dir = 'spec/vcr_cassettes'
  c.configure_rspec_metadata!
  c.default_cassette_options = { record: :new_episodes }
  c.filter_sensitive_data('<GMAN_SERVICES_URL>') { ENV['GMAN_SERVICES_URL'] }
  c.filter_sensitive_data('<GMAN_SERVICES_CLIENT_ID>') do
    ENV['GMAN_SERVICES_CLIENT_ID']
  end
  c.filter_sensitive_data('<GMAN_SERVICES_CLIENT_SECRET>') do
    ENV['GMAN_SERVICES_CLIENT_SECRET']
  end
  c.hook_into :webmock
  c.ignore_hosts 'codeclimate.com'
end

RSpec.configure do |config|
  config.before(:each) do
    VCR.eject_cassette
  end if real_requests
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gman_client-0.2.1 spec/support/vcr.rb
gman_client-0.2.0 spec/support/vcr.rb
gman_client-0.0.10 spec/support/vcr.rb
gman_client-0.0.9 spec/support/vcr.rb
gman_client-0.0.8 spec/support/vcr.rb