Add test for #509 - setting proxy url as string
This commit is contained in:
parent
c9e0d52d96
commit
aed2936248
|
@ -93,6 +93,14 @@ RSpec.describe Google::Apis::Core::BaseService do
|
||||||
end
|
end
|
||||||
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
|
context 'when making simple commands' do
|
||||||
let(:command) { service.send(:make_simple_command, :get, 'zoo/animals', authorization: 'foo') }
|
let(:command) { service.send(:make_simple_command, :get, 'zoo/animals', authorization: 'foo') }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue