Sha256: 934314aa84a1382840f398e31b2a9f33a769065a63d7e79b6f23b9805bda8d97
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
require 'vcr' require 'rspec' require 'active_support/all' VCR.configure do |c| c.cassette_library_dir = 'spec/dict/vcr_cassettes' c.hook_into :fakeweb c.allow_http_connections_when_no_cassette = true 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) { example.call } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dict-0.3.4 | spec/dict/vcr_setup.rb |