Skip to content
Browse files

[test] fixes helpers for non standard http methods

  • Loading branch information...
1 parent 91c034a commit e91a938d402b0d1b0517a1f978cbf69d3eb375d8 @dscape committed Jul 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/helpers.js
View
2 tests/helpers.js
@@ -88,7 +88,7 @@ helpers.nock = function helpersNock(url, fixture) {
nk = nk.matchHeader(k, reqheaders[k]);
}
}
- nk[method](npath, body).reply(status, response, headers);
+ nk.intercept(npath, method, body).reply(status, response, headers);
}
});
nock(url).log(console.log);

0 comments on commit e91a938

Please sign in to comment.
Something went wrong with that request. Please try again.