Fixed issues with recursive structures and external references.

This commit is contained in:
Bob Aman committed 2011-10-05 14:13:39 +03:00
1 parent 06af19a112
commit bb4e15b9f4
3 files changed
+51 -2

No files matched your search

+12
View File
@@ -379,6 +379,18 @@ describe Google::APIClient do
status.should == 200
end
it 'should correctly handle nested schema objects' do
result = @client.execute(
@buzz.activities.list,
{'alt' => 'json', 'userId' => 'hikingfan', 'scope' => '@public'},
'',
[],
:authenticated => false
)
feed = result.data
puts feed.inspect
end
it 'should not be able to execute requests without authorization' do
result = @client.execute(
@buzz.activities.list,