spec/api/configuration_spec.rb in deepl-rb-2.5.0 vs spec/api/configuration_spec.rb in deepl-rb-2.5.1
- old
+ new
@@ -7,10 +7,10 @@
subject { DeepL::Configuration.new(attributes) }
describe '#initialize' do
context 'When using default configuration attributes' do
it 'should use default attributes' do
- expect(subject.auth_key).to eq(ENV['DEEPL_AUTH_KEY'])
+ expect(subject.auth_key).to eq(ENV.fetch('DEEPL_AUTH_KEY', nil))
expect(subject.host).to eq('https://api.deepl.com')
expect(subject.version).to eq('v2')
end
end