Sha256: 4846d7380762c32031bea0e503e1a66ab7d84cdf1eac4422f47d076bcea1b1bd
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true # Coverage require 'simplecov' SimpleCov.start require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov # Load lib require_relative '../lib/deepl' # Lib config ENV['DEEPL_AUTH_KEY'] ||= 'TEST-TOKEN' # VCR tapes configuration require 'vcr' VCR.configure do |config| config.cassette_library_dir = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock config.filter_sensitive_data('VALID_TOKEN') { ENV['DEEPL_AUTH_KEY'] } config.default_cassette_options = { # record: :new_episodes, match_requests_on: %i[method uri body headers] } end # General helpers def build_deepl_api DeepL::API.new(DeepL::Configuration.new(host: 'https://api-free.deepl.com')) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deepl-rb-2.5.0 | spec/spec_helper.rb |