Sha256: 62c7ea938a2aa0db941d0ba325ef497b8f098179dbefda43618e690d76c9b74a
Contents?: true
Size: 734 Bytes
Versions: 3
Compression:
Stored size: 734 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.fetch('DEEPL_AUTH_KEY', nil) } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deepl-rb-2.5.3 | spec/spec_helper.rb |
deepl-rb-2.5.2 | spec/spec_helper.rb |
deepl-rb-2.5.1 | spec/spec_helper.rb |