Sha256: 8988a46eecb6d32e9d0c29c3efd3b53a15962e9a903afd5ba75750e4705e85cf

Contents?: true

Size: 646 Bytes

Versions: 7

Compression:

Stored size: 646 Bytes

Contents

# 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)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
deepl-rb-2.2.2 spec/spec_helper.rb
deepl-rb-2.2.1 spec/spec_helper.rb
deepl-rb-2.2.0 spec/spec_helper.rb
deepl-rb-2.1.0 spec/spec_helper.rb
deepl-rb-2.0.0 spec/spec_helper.rb
deepl-rb-1.0.1 spec/spec_helper.rb
deepl-rb-1.0.0 spec/spec_helper.rb