Sha256: 9e283bd114c3d961d131aaa6dd3a4df3642c84ff606dcc76b37c7844253c16ec
Contents?: true
Size: 1.73 KB
Versions: 5
Compression:
Stored size: 1.73 KB
Contents
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper.rb"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration require 'rubygems' require 'bundler/setup' require 'rspec/its' require 'date' # Needed for stamp require 'stamp' # Some reasons stamp doesn't load automatically? require 'vcr' ENV['QT_KEYS'] ||= 'test_key_1,test_key_2' qt_keys = ENV['QT_KEYS'].split(',') VCR.configure do |c| c.cassette_library_dir = 'spec/support/cassettes' c.default_cassette_options = { match_requests_on: [:method, :uri, :body] } c.filter_sensitive_data('<QT_KEY>') { qt_keys[0] } c.filter_sensitive_data('<QT_KEY_2>') { qt_keys[1] } c.hook_into :webmock end require 'support/coverage_loader' require 'quick_travel' # eager load to ensure coverage correct require 'quick_travel/config' QuickTravel.configure do |c| c.url = 'http://test.qt.sealink.com.au:8080' c.access_key = qt_keys[0] end require 'quick_travel/connection_error' require 'quick_travel/constants' require 'quick_travel/cache' class HashCache def initialize @cache = {} end def read(name) @cache[name] end def write(name, value, _ = nil) @cache[name] = value end def clear @cache = {} end def delete(name) @cache.delete(name) end end QuickTravel::Cache.cache_store = HashCache.new RSpec.configure do |config| config.raise_errors_for_deprecations! config.run_all_when_everything_filtered = true config.filter_run :focus config.before :each do allow(QuickTravel::Adapter).to receive(:cache) { ActiveSupport::Cache::MemoryStore.new } end end
Version data entries
5 entries across 5 versions & 1 rubygems