diff options
author | Azul <azul@riseup.net> | 2012-11-20 10:51:54 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-11-20 10:51:54 +0100 |
commit | 555491c4420a3b8b23b74fb081b76a5bf7778049 (patch) | |
tree | fd280571682a640d248c6b714c2831633031052c /spec/helper.js | |
parent | 2859af0287d7672df0a8965be43fb9859fca8bf8 (diff) | |
parent | 082f859bbdaedf4f03eb85aea9b8f88ffda2fe6d (diff) |
Merge branch 'feature/clean-srp' into develop
Diffstat (limited to 'spec/helper.js')
-rw-r--r-- | spec/helper.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helper.js b/spec/helper.js index 11327af..8bae2c6 100644 --- a/spec/helper.js +++ b/spec/helper.js @@ -30,11 +30,11 @@ var specHelper = (function() { request.respond(200, header, body); } - function respondJSON(object) { + function respondJSON(object, responseCode) { var request = this.requests.pop(); header = { "Content-Type": "application/json;charset=utf-8" }; body = JSON.stringify(object); - request.respond(200, header, body); + request.respond(responseCode || 200, header, body); } return { |