Sha256: 5e95b4f1dfaafd2d2ca8eec6d5513c28a17d239b4c5b72e58cad1c348ae6b193
Contents?: true
Size: 966 Bytes
Versions: 10
Compression:
Stored size: 966 Bytes
Contents
require "codeclimate-test-reporter" CodeClimate::TestReporter.start require 'simplecov' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter] SimpleCov.start # require 'dotenv' # Dotenv.load require 'datarank' require 'rspec' require 'webmock/rspec' require 'vcr' VCR.configure do |c| c.configure_rspec_metadata! c.cassette_library_dir = 'spec/cassettes' c.hook_into :webmock c.default_cassette_options = { :record => :new_episodes } end # The API key for use during testing # # @return The account's username. def datarank_apikey ENV.fetch 'DATARANK_AUTHORIZATION_KEY' end # The API Version for testing # # @return The account's username. def datarank_api_version ENV.fetch 'DATARANK_API_VERSION' end # An Datarank object # # @return The authenticated client. def authenticated_client VCR.use_cassette('authenticated_client') do Datarank::Client.new datarank_apikey, datarank_api_version end end
Version data entries
10 entries across 10 versions & 2 rubygems