Sha256: a7c69de8d705c625615c1d23f09653c20685350fb38798a77622b8b63bde3ce2

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

require File.expand_path './lib/disk_store'
require 'rspec'
require 'tempfile'
require 'tmpdir'
require 'vcr'

VCR.configure do |c|
  c.configure_rspec_metadata!

  c.default_cassette_options = {
    serialize_with:              :json,
    preserve_exact_body_bytes:   true,
    decode_compressed_response:  true,
    match_requests_on:          [:method]
  }

  c.cassette_library_dir = 'spec/cassettes'
  c.hook_into :webmock
  c.ignore_localhost = true
end

RSpec.configure do |config|
  config.color_enabled = true
  config.tty = true

  config.treat_symbols_as_metadata_keys_with_true_values = true

  config.around(:each, :vcr) do |example|
    name = example.metadata[:full_description].gsub(/\//, "_").split(/\s+/, 2).join("/").gsub(/[^\w\/]+/, "_").downcase
    VCR.use_cassette(name) { example.call }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
disk_store-0.2.1 spec/spec_helper.rb
disk_store-0.2.0 spec/spec_helper.rb
disk_store-0.1.2 spec/spec_helper.rb
disk_store-0.1.1 spec/spec_helper.rb
disk_store-0.1.0 spec/spec_helper.rb