- Improving the Service interface with access to more properties

- Adding end-to-end spec
- Fixing bugs
This commit is contained in:
Sergio Gomes committed 2013-09-11 16:51:10 +01:00
1 parent e73ce124fa
commit 1e2405093b
2 files changed
+102 -57

No files matched your search

+11
View File
@@ -261,6 +261,17 @@ describe Google::APIClient::Service do
end
end
end
describe 'with the Discovery API' do
it 'should make a valid end-to-end request' do
discovery = Google::APIClient::Service.new('discovery', 'v1',
{:application_name => APPLICATION_NAME, :authenticated => false})
result = discovery.apis.get_rest(:api => 'discovery', :version => 'v1').execute
result.should_not be_nil
result.data.name.should == 'discovery'
result.data.version.should == 'v1'
end
end
end