Sha256: 5b5ea7448078892d6388b9f239dd924fa88894a240c93ea04adbffb3445d5795

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require 'vcr'

require_relative '../lib/deepl'

# Lib config
ENV['DEEPL_AUTH_KEY'] ||= 'TEST-TOKEN'

# VCR tapes configuration
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)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deepl-rb-0.0.1 spec/spec_helper.rb
deepl-rb-0.0.0 spec/spec_helper.rb