diff options
author | Azul <azul@riseup.net> | 2013-03-20 12:51:56 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-03-20 12:51:56 +0100 |
commit | 3328b20621265b0c50ed395ea890b267ab89109b (patch) | |
tree | 5afee96076bd922653231af818e98d5147457dff /spec/helper.js | |
parent | 527eb51ad4b943bde7e2ba411f5772611a80463c (diff) | |
parent | d29d1146865d36e9d9789d3936e7a9163511be0a (diff) |
Merge branch 'release/0.3.0'
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 { |