summaryrefslogtreecommitdiff
path: root/spec/restful/signup.js
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-11-12 11:17:13 +0100
committerAzul <azul@riseup.net>2012-11-12 11:17:13 +0100
commit7b73cbd591aa9ac3f46400c040ae14ec26e2d839 (patch)
treeedc08f1b2c6b05f5d11ead5caf02680ec79ec0cc /spec/restful/signup.js
parent23350b54ec2723e1b2e333626567c9fe9d1e2644 (diff)
parent71ba8a28ebf04b84a9d2f0eb1a64dedec2ec8fe3 (diff)
Merge branch 'feature-updated_json_api' into develop
Diffstat (limited to 'spec/restful/signup.js')
-rw-r--r--spec/restful/signup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/restful/signup.js b/spec/restful/signup.js
index 7b66dd7..e4d70df 100644
--- a/spec/restful/signup.js
+++ b/spec/restful/signup.js
@@ -22,7 +22,7 @@ describe("Signup", function() {
this.srp.identify = callback;
this.srp.session.getSalt = function() {return "4c78c3f8"};
this.srp.register();
- this.expectRequest('users', "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();
});