Updated OAuth1 configuration code. Added docs.

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@9 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
bobaman@google.com committed 2010-08-14 00:53:57 +00:00
1 parent e4b6f8528e
commit 0d45cbe27b
2 files changed
+136 -20

No files matched your search

@@ -20,11 +20,16 @@ require "addressable/uri"
describe Google::APIClient::OAuth1, "configured for use with Buzz" do
before do
@oauth = Google::APIClient::OAuth1.new(
:authorization_uri =>
"https://www.google.com/buzz/api/auth/OAuthAuthorizeToken",
:scopes => ["https://www.googleapis.com/auth/buzz"]
)
@oauth = Google::APIClient::OAuth1.new(:service => :buzz)
end
it "should have the correct authorization_uri" do
@oauth.authorization_endpoint_uri.should ==
"https://www.google.com/buzz/api/auth/OAuthAuthorizeToken"
end
it "should have the correct scope" do
@oauth.scopes.should include("https://www.googleapis.com/auth/buzz")
end
it "should be able to get a request token" do