Sha256: 7c7e401cd1bfbd4e49907f20268fe7a5343867c938af83d4c0db47e5528bd46c
Contents?: true
Size: 946 Bytes
Versions: 12
Compression:
Stored size: 946 Bytes
Contents
require 'simplecov' SimpleCov.start require 'rubygems' require 'bundler/setup' require 'webmock/rspec' require 'capybara/rspec' require 'vcr' require "net/https" require "uri" ## Uncomment to load in a .yml with your pin key # ENV.update YAML.load(File.read(File.expand_path("../test_data.yml", __FILE__))) # require pin_up gem require 'pin_up' RSpec.configure do |config| config.include WebMock::API config.treat_symbols_as_metadata_keys_with_true_values = true config.around(:each, :vcr) do |example| name = example.metadata[:full_description].split(/\s+/, 2).join("/").gsub(/[^\w\/]+/, "_") # options = example.metadata.slice(:record, :match_requests_on).except(:example_group) VCR.use_cassette(name) { example.call } end end VCR.configure do |c| c.cassette_library_dir = "spec/vcr" c.hook_into :webmock c.allow_http_connections_when_no_cassette = true c.filter_sensitive_data('<key>') {ENV["PIN_SECRET"]} end
Version data entries
12 entries across 12 versions & 1 rubygems