Sha256: f1726b3ab60a4a491456f3903d224f1f923be8cf85d5214953cde061487f66a1
Contents?: true
Size: 953 Bytes
Versions: 2
Compression:
Stored size: 953 Bytes
Contents
require_relative '../lib/base/apis' require 'webmock/rspec' require 'vcr' SPEC_ROOT = Base::Apis::ROOT / 'spec' Dir[SPEC_ROOT / 'support/**/*_spec.rb'] .sort .each { |f| require f } FIXTURES_PATH = SPEC_ROOT / 'fixtures' VCR.configure do |config| config.allow_http_connections_when_no_cassette = true config.cassette_library_dir = FIXTURES_PATH / 'vcr_cassettes' config.hook_into :webmock end WebMock.disable_net_connect!(allow_localhost: true) RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end config.before do secret_file = FIXTURES_PATH / 'files' / 'client_secret.json' data = MultiJson.load(File.open(secret_file, 'r').read) allow_any_instance_of(Base::APIClient::ClientSecret) .to receive(:load_file) { data } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
base-api-client-0.3.3.beta | spec/spec_helper.rb |
base-api-client-0.3.2.beta | spec/spec_helper.rb |