diff options
author | Azul <azul@riseup.net> | 2012-10-15 11:14:28 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-10-15 11:14:28 +0200 |
commit | 6feb77060140fe8026812970c4d5ea83da3cd200 (patch) | |
tree | 900cb699aaead6d43c25afd13e773671aa948f6e /spec/specHelper.js | |
parent | d6a78049f3356d9d645143362eca74434410bf62 (diff) | |
parent | 09a6d9eb8d0467f311bbae3d6fe2d923244edb21 (diff) |
Merge branch 'feature-jquery-remote' into develop
Diffstat (limited to 'spec/specHelper.js')
-rw-r--r-- | spec/specHelper.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/specHelper.js b/spec/specHelper.js index 21a0cb7..11327af 100644 --- a/spec/specHelper.js +++ b/spec/specHelper.js @@ -12,10 +12,14 @@ var specHelper = (function() { this.respondXML = respondXML; } - function expectRequest(url, content) { + // TODO: validate http verb + function expectRequest(url, content, verb) { expect(this.requests.length).toBe(1); expect(this.requests[0].url).toBe(url); - expect(this.requests[0].requestBody).toBe(content); + expect(decodeURI(this.requests[0].requestBody)).toBe(content); + if (verb) { + expect(this.requests[0].method).toBe(verb); + } } function respondXML(content) { |