summaryrefslogtreecommitdiff
path: root/spec/specHelper.js
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-10-15 11:10:35 +0200
committerAzul <azul@riseup.net>2012-10-15 11:10:35 +0200
commit09a6d9eb8d0467f311bbae3d6fe2d923244edb21 (patch)
tree900cb699aaead6d43c25afd13e773671aa948f6e /spec/specHelper.js
parent2263abad65b92ef26c8e67097bbcfeb6988ab8fd (diff)
all rest tests passing, using proper verbs
Diffstat (limited to 'spec/specHelper.js')
-rw-r--r--spec/specHelper.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/specHelper.js b/spec/specHelper.js
index 893f8a4..11327af 100644
--- a/spec/specHelper.js
+++ b/spec/specHelper.js
@@ -13,10 +13,13 @@ var specHelper = (function() {
}
// TODO: validate http verb
- function expectRequest(url, content) {
+ function expectRequest(url, content, verb) {
expect(this.requests.length).toBe(1);
expect(this.requests[0].url).toBe(url);
expect(decodeURI(this.requests[0].requestBody)).toBe(content);
+ if (verb) {
+ expect(this.requests[0].method).toBe(verb);
+ }
}
function respondXML(content) {