spec/spec_helper.rb in deepl-rb-0.0.1 vs spec/spec_helper.rb in deepl-rb-1.0.0
- old
+ new
@@ -1,12 +1,19 @@
-require 'vcr'
+# 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 = {