Skip to content

Commit

Permalink
Add test for googleapis#509 - setting proxy url as string
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed Mar 31, 2017
1 parent c9e0d52 commit aed2936
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/google/apis/core/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@
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') }

Expand Down

0 comments on commit aed2936

Please sign in to comment.