Sha256: 43024356976419e6cfdfcf36b5e2ac56b96cb9f6ff5c0708ebd93adacb2c06a2

Contents?: true

Size: 526 Bytes

Versions: 3

Compression:

Stored size: 526 Bytes

Contents

require 'vcr'
require 'webmock'

VCR.configure do |c|
  c.cassette_library_dir  = File.join(ABS_PATH, "spec", "vcr")
  c.hook_into :webmock
  c.ignore_hosts '127.0.0.1', 'localhost'
end

RSpec.configure do |c|
  c.treat_symbols_as_metadata_keys_with_true_values = true
  c.around(:each, :vcr) do |example|
    name = example.metadata[:full_description].split(/\s+/, 2).join("/").underscore.gsub(/[^\w\/]+/, "_")
    VCR.use_cassette( name, :record => :new_episodes, :match_requests_on => [:query] ) { example.call }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
duty_calculator-0.0.8 spec/support/vcr.rb
duty_calculator-0.0.7 spec/support/vcr.rb
duty_calculator-0.0.6 spec/support/vcr.rb