Sha256: c7267e577046d1c6a58d5420cb11206ead9d526ebd4da76ecd3b1fa770accde1
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 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] } 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.4.0 | spec/spec_helper.rb |
deepl-rb-2.3.1 | spec/spec_helper.rb |
deepl-rb-2.3.0 | spec/spec_helper.rb |