Add test to proof default value for followRedirects is true

This commit is contained in:
Pieter Joost van de Sande 2013-05-06 09:40:40 +02:00
parent f24590182c
commit 3584b43bd2

View File

@ -24,6 +24,12 @@ DummyRequest.prototype.end= function(){
}
vows.describe('OAuth').addBatch({
'When newing OAuth': {
topic: new OAuth(null, null, null, null, null, null, "PLAINTEXT"),
'followRedirects is enabled by default': function (oa) {
assert.equal(oa._clientOptions.followRedirects, true)
}
},
'When generating the signature base string described in http://oauth.net/core/1.0/#sig_base_example': {
topic: new OAuth(null, null, null, null, null, null, "HMAC-SHA1"),
'we get the expected result string': function (oa) {