diff options
author | Azul <azul@riseup.net> | 2013-07-12 11:32:01 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-07-12 11:32:01 +0200 |
commit | 5c8a17447e382f9b9f9f241e293156a94162a1ca (patch) | |
tree | 78572472abff7e6d370e4271048a3fa9780212c6 /spec/signup_spec.js | |
parent | 926a5d5960db51903e33c8496487da59f9f41242 (diff) |
the 0 prefix in hex is essential for building the M and M2 strings
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 48a62a7..0bd8d48 100644 --- a/spec/signup_spec.js +++ b/spec/signup_spec.js @@ -22,7 +22,7 @@ describe("Signup with srp var", function() { var callback = sinon.spy(); srp.signedUp = callback; srp.signup(); - this.expectRequest('/users.json', "user[login]=testuser&user[password_salt]=4c78c3f8&user[password_verifier]=474c26aa42d11f20544a00f7bf9711c4b5cf7aab95ed448df82b95521b96668e7480b16efce81c861870302560ddf6604c67df54f1d04b99d5bb9d0f02c6051ada5dc9d594f0d4314e12f876cfca3dcd99fc9c98c2e6a5e04298b11061fb8549a22cde0564e91514080df79bca1c38c682214d65d590f66b3719f954b078b83c", 'POST') + this.expectRequest('/1/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(); }); |