From 3584b43bd2125c5e2931255d422cba545ba6c613 Mon Sep 17 00:00:00 2001 From: Pieter Joost van de Sande Date: Mon, 6 May 2013 09:40:40 +0200 Subject: [PATCH] Add test to proof default value for followRedirects is true --- tests/oauth.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/oauth.js b/tests/oauth.js index ab1c296..99e5bb6 100644 --- a/tests/oauth.js +++ b/tests/oauth.js @@ -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) {