Merge branch 'master' of https://github.com/google/google-api-ruby-client into new_programming_interface

This commit is contained in:
Sergio Gomes 2013-10-04 14:48:58 +01:00
commit 00f66633e0
2 changed files with 10 additions and 10 deletions

View File

@ -53,7 +53,7 @@ describe Google::APIClient::BatchRequest do
@call1 = { @call1 = {
:api_method => @discovery.apis.get_rest, :api_method => @discovery.apis.get_rest,
:parameters => { :parameters => {
'api' => 'adsense', 'api' => 'plus',
'version' => 'v1' 'version' => 'v1'
} }
} }
@ -118,7 +118,7 @@ describe Google::APIClient::BatchRequest do
@call1 = { @call1 = {
:api_method => @discovery.apis.get_rest, :api_method => @discovery.apis.get_rest,
:parameters => { :parameters => {
'api' => 'adsense', 'api' => 'plus',
'version' => 'v1' 'version' => 'v1'
} }
} }

View File

@ -474,12 +474,12 @@ describe Google::APIClient do
it 'should find methods that are in the discovery document' do it 'should find methods that are in the discovery document' do
CLIENT.discovered_method( CLIENT.discovered_method(
'adsense.reports.generate', 'adsense' 'adsense.reports.generate', 'adsense', 'v1.3'
).name.should == 'generate' ).name.should == 'generate'
end end
it 'should not find methods that are not in the discovery document' do it 'should not find methods that are not in the discovery document' do
CLIENT.discovered_method('adsense.bogus', 'adsense').should == nil CLIENT.discovered_method('adsense.bogus', 'adsense', 'v1.3').should == nil
end end
it 'should generate requests against the correct URIs' do it 'should generate requests against the correct URIs' do