diff options
author | Azul <azul@riseup.net> | 2012-11-20 12:43:34 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-11-20 12:43:34 +0100 |
commit | 635ea47f1c19d7985a8f5107c070ae19edf9dd54 (patch) | |
tree | 6332895341bf68c1f618feed8ee9f9a02ef4aaff /spec/signup_spec.js | |
parent | 443a9d3aa5e66f98d7f701e04967620781f3012c (diff) |
all request should go to absolute paths
They should be independent of the url we're serving the page from
Diffstat (limited to 'spec/signup_spec.js')
-rw-r--r-- | spec/signup_spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/signup_spec.js b/spec/signup_spec.js index 41af179..72689b1 100644 --- a/spec/signup_spec.js +++ b/spec/signup_spec.js @@ -25,7 +25,7 @@ describe("Signup with srp var", function() { srp.signedUp = callback; srp.session.getSalt = function() {return "4c78c3f8"}; srp.signup(); - this.expectRequest('users.json', "user[login]=testuser&user[password_salt]=4c78c3f8&user[password_verifier]=474c26aa42d11f20544a00f7bf9711c4b5cf7aab95ed448df82b95521b96668e7480b16efce81c861870302560ddf6604c67df54f1d04b99d5bb9d0f02c6051ada5dc9d594f0d4314e12f876cfca3dcd99fc9c98c2e6a5e04298b11061fb8549a22cde0564e91514080df79bca1c38c682214d65d590f66b3719f954b078b83c", 'POST') + this.expectRequest('/users.json', "user[login]=testuser&user[password_salt]=4c78c3f8&user[password_verifier]=474c26aa42d11f20544a00f7bf9711c4b5cf7aab95ed448df82b95521b96668e7480b16efce81c861870302560ddf6604c67df54f1d04b99d5bb9d0f02c6051ada5dc9d594f0d4314e12f876cfca3dcd99fc9c98c2e6a5e04298b11061fb8549a22cde0564e91514080df79bca1c38c682214d65d590f66b3719f954b078b83c", 'POST') this.respondJSON({password_salt: "4c78c3f8", login: "testuser", ok: "true"}); expect(callback).toHaveBeenCalled(); }); |