|
86 | 86 |
|
87 | 87 | it 'should correctly determine the discovery URI if :user_ip is set' do
|
88 | 88 | CLIENT.user_ip = '127.0.0.1'
|
89 |
| - |
| 89 | + |
90 | 90 | conn = stub_connection do |stub|
|
91 | 91 | stub.get('/discovery/v1/apis/prediction/v1.2/rest?userIp=127.0.0.1') do |env|
|
92 | 92 | end
|
|
199 | 199 |
|
200 | 200 | it 'should generate valid requests when parameter value includes semicolon' do
|
201 | 201 | conn = stub_connection do |stub|
|
202 |
| - # semicolon (;) in parameter value was being converted to |
203 |
| - # bare ampersand (&) in 0.4.7. ensure that it gets converted |
| 202 | + # semicolon (;) in parameter value was being converted to |
| 203 | + # bare ampersand (&) in 0.4.7. ensure that it gets converted |
204 | 204 | # to a CGI-escaped semicolon (%3B) instead.
|
205 | 205 | stub.post('/prediction/v1.2/training?data=12345%3B67890') do |env|
|
206 | 206 | env[:body].should == ''
|
|
266 | 266 | env[:url].host.should == 'testing-domain.example.com'
|
267 | 267 | end
|
268 | 268 | end
|
269 |
| - |
| 269 | + |
270 | 270 | request = CLIENT.execute(
|
271 | 271 | :api_method => prediction_rebase.training.insert,
|
272 | 272 | :parameters => {'data' => '123'},
|
|
417 | 417 | stub.get('/plus/v1/people/107807692475771887386/activities/public') do |env|
|
418 | 418 | end
|
419 | 419 | end
|
420 |
| - |
| 420 | + |
421 | 421 | request = CLIENT.execute(
|
422 | 422 | :api_method => @plus.activities.list,
|
423 | 423 | :parameters => {
|
|
474 | 474 |
|
475 | 475 | it 'should find methods that are in the discovery document' do
|
476 | 476 | CLIENT.discovered_method(
|
477 |
| - 'adsense.reports.generate', 'adsense' |
| 477 | + 'adsense.reports.generate', 'adsense', 'v1.3' |
478 | 478 | ).name.should == 'generate'
|
479 | 479 | end
|
480 | 480 |
|
481 | 481 | it 'should not find methods that are not in the discovery document' do
|
482 |
| - CLIENT.discovered_method('adsense.bogus', 'adsense').should == nil |
| 482 | + CLIENT.discovered_method('adsense.bogus', 'adsense', 'v1.3').should == nil |
483 | 483 | end
|
484 | 484 |
|
485 | 485 | it 'should generate requests against the correct URIs' do
|
|
0 commit comments