Mostly doc updates, +remove support for method as string

This commit is contained in:
Steven Bazyl committed 2012-10-10 14:28:45 -06:00
1 parent b425658f2f
commit 1fca089d62
11 files changed
+404 -158

No files matched your search

+2 -28
View File
@@ -555,19 +555,6 @@ describe Google::APIClient do
CLIENT.discovered_api('moderator').batch_path.should_not be_nil
end
it 'should generate requests against the correct URIs' do
conn = stub_connection do |stub|
stub.get('/moderator/v1/profiles/@me') do |env|
end
end
request = CLIENT.execute(
:api_method => 'moderator.profiles.get',
:authenticated => false,
:connection => conn
)
conn.verify
end
it 'should generate requests against the correct URIs' do
conn = stub_connection do |stub|
stub.get('/moderator/v1/profiles/@me') do |env|
@@ -583,7 +570,7 @@ describe Google::APIClient do
it 'should not be able to execute requests without authorization' do
result = CLIENT.execute(
'moderator.profiles.get',
@moderator.profiles.get,
{},
'',
[],
@@ -623,19 +610,6 @@ describe Google::APIClient do
CLIENT.discovered_method('adsense.bogus', 'adsense').should == nil
end
it 'should generate requests against the correct URIs' do
conn = stub_connection do |stub|
stub.get('/adsense/v1/adclients') do |env|
end
end
request = CLIENT.execute(
:api_method => 'adsense.adclients.list',
:authenticated => false,
:connection => conn
)
conn.verify
end
it 'should generate requests against the correct URIs' do
conn = stub_connection do |stub|
stub.get('/adsense/v1/adclients') do |env|
@@ -651,7 +625,7 @@ describe Google::APIClient do
it 'should not be able to execute requests without authorization' do
result = CLIENT.execute(
:api_method => 'adsense.adclients.list',
:api_method => @adsense.adclients.list,
:authenticated => false
)
result.response.status.should == 401