spec/api/deepl_spec.rb in deepl-rb-2.1.0 vs spec/api/deepl_spec.rb in deepl-rb-2.2.0
- old
+ new
@@ -13,15 +13,16 @@
end
end
context 'When providing a valid configuration' do
let(:configuration) do
- DeepL::Configuration.new(auth_key: 'VALID', host: 'http://www.example.org')
+ DeepL::Configuration.new(auth_key: 'VALID', host: 'http://www.example.org', version: 'v1')
end
before do
subject.configure do |config|
config.auth_key = configuration.auth_key
config.host = configuration.host
+ config.version = configuration.version
end
end
it 'should use the provided configuration' do
expect(subject.configuration).to eq(configuration)