Sha256: 1b70ed8ac8da4090ec82cbd0ad5cd608c9c26046483c46c6e680bdef5ba03ec8
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
VCR.config do |c| c.stub_with :fakeweb c.cassette_library_dir = File.expand_path("../../../fixtures/remote", __FILE__) c.default_cassette_options = {:record => :none} c.before_record do |i| i.uri.sub!(GeoCerts.partner_id, '%{PARTNER_ID}') i.uri.sub!(GeoCerts.api_token, '%{API_TOKEN}') i.request.headers.delete("authorization") end c.before_playback do |i| i.uri.sub!('%{PARTNER_ID}', GeoCerts.partner_id) i.uri.sub!('%{API_TOKEN}', GeoCerts.api_token) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geocerts-1.0.1 | test/config/initializers/vcr.rb |
geocerts-1.0.0 | test/config/initializers/vcr.rb |