Add test for #509 - setting proxy url as string

This commit is contained in:
Steve Bazyl 2017-03-31 13:12:59 -07:00
parent c9e0d52d96
commit aed2936248
1 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,14 @@ RSpec.describe Google::Apis::Core::BaseService do
end
end
context 'with proxy' do
it 'should allow proxy URLs as strings' do
Google::Apis::ClientOptions.default.proxy_url = 'http://gateway.example.com:1234'
service.client
end
end
context 'when making simple commands' do
let(:command) { service.send(:make_simple_command, :get, 'zoo/animals', authorization: 'foo') }