Skip to content

Commit 00f6663

Browse files
author
Sergio Gomes
committed
Merge branch 'master' of https://github.com/google/google-api-ruby-client into new_programming_interface
2 parents d7bd712 + 5c31b69 commit 00f6663

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

spec/google/api_client/batch_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
@call1 = {
5454
:api_method => @discovery.apis.get_rest,
5555
:parameters => {
56-
'api' => 'adsense',
56+
'api' => 'plus',
5757
'version' => 'v1'
5858
}
5959
}
@@ -118,7 +118,7 @@
118118
@call1 = {
119119
:api_method => @discovery.apis.get_rest,
120120
:parameters => {
121-
'api' => 'adsense',
121+
'api' => 'plus',
122122
'version' => 'v1'
123123
}
124124
}
@@ -244,6 +244,6 @@
244244
#request[:body].read.gsub("\r", "").should =~ expected_body
245245
end
246246
end
247-
247+
248248
end
249249
end

spec/google/api_client/discovery_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
it 'should correctly determine the discovery URI if :user_ip is set' do
8888
CLIENT.user_ip = '127.0.0.1'
89-
89+
9090
conn = stub_connection do |stub|
9191
stub.get('/discovery/v1/apis/prediction/v1.2/rest?userIp=127.0.0.1') do |env|
9292
end
@@ -199,8 +199,8 @@
199199

200200
it 'should generate valid requests when parameter value includes semicolon' do
201201
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
204204
# to a CGI-escaped semicolon (%3B) instead.
205205
stub.post('/prediction/v1.2/training?data=12345%3B67890') do |env|
206206
env[:body].should == ''
@@ -266,7 +266,7 @@
266266
env[:url].host.should == 'testing-domain.example.com'
267267
end
268268
end
269-
269+
270270
request = CLIENT.execute(
271271
:api_method => prediction_rebase.training.insert,
272272
:parameters => {'data' => '123'},
@@ -417,7 +417,7 @@
417417
stub.get('/plus/v1/people/107807692475771887386/activities/public') do |env|
418418
end
419419
end
420-
420+
421421
request = CLIENT.execute(
422422
:api_method => @plus.activities.list,
423423
:parameters => {
@@ -474,12 +474,12 @@
474474

475475
it 'should find methods that are in the discovery document' do
476476
CLIENT.discovered_method(
477-
'adsense.reports.generate', 'adsense'
477+
'adsense.reports.generate', 'adsense', 'v1.3'
478478
).name.should == 'generate'
479479
end
480480

481481
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
483483
end
484484

485485
it 'should generate requests against the correct URIs' do

0 commit comments

Comments
 (0)