spec/spec_helper.rb in deepl-rb-2.5.0 vs spec/spec_helper.rb in deepl-rb-2.5.1
- old
+ new
@@ -16,10 +16,10 @@
# 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.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