Permalink
Browse files

Fix mock status code for auth required test.

  • Loading branch information...
1 parent bf475ab commit 63171d3636a95b1ff41abe46bbdb94b0a9852a6f @cliffano committed Feb 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/jenkins.js
View
@@ -56,7 +56,7 @@ buster.testCase('jenkins - jenkins', {
},
'should pass authentication required error to callback when result has status code 403': function (done) {
var mockRequest = function (method, url, opts, cb) {
- opts.handlers[403]({ statusCode: 401 }, cb);
+ opts.handlers[403]({ statusCode: 403 }, cb);
};
this.stub(bag, 'http', { request: mockRequest });
var jenkins = new Jenkins('http://localhost:8080');

0 comments on commit 63171d3

Please sign in to comment.