Add test to proof default value for followRedirects is true
This commit is contained in:
parent
f24590182c
commit
3584b43bd2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user