Documented behaviour of getOAuthRequestToken

This commit is contained in:
ciaranj
2011-08-16 14:04:01 +01:00
parent 1b4624cacd
commit 49c83f1824
2 changed files with 51 additions and 10 deletions

View File

@ -142,8 +142,12 @@ vows.describe('OAuth').addBatch({
return oa;
},
'Use the provided HTTP method': function(oa) {
oa.getOAuthRequestToken(function() {}, "GET");
oa.getOAuthRequestToken("GET", function() {});
assert.equal(oa.requestArguments[2], "GET");
},
'Use a POST by default': function(oa) {
oa.getOAuthRequestToken(function() {});
assert.equal(oa.requestArguments[2], "POST");
}
},
'When get authorization header' : {