diff options
author | Azul <azul@leap.se> | 2012-08-03 20:37:11 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-08-03 20:37:11 +0200 |
commit | 94d1938e2e5d0ee5e8e7b9a8ed44a067677e0133 (patch) | |
tree | ffdae863dda3b197d6e165bffa5a782e9e1ab338 /spec/signup.js | |
parent | 0da31f678580649415cb0487c830f21d7e163253 (diff) |
moved all xhr related stuff to a seperate class
We can replace this if we want to use jquery ajax or similar. Also this has all the urls so it's super easy to overwrite
Diffstat (limited to 'spec/signup.js')
-rw-r--r-- | spec/signup.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/signup.js b/spec/signup.js index b5099b8..b38778a 100644 --- a/spec/signup.js +++ b/spec/signup.js @@ -24,11 +24,11 @@ describe("Signup", function() { it("receives the salt from /register/salt", function(){ var callback = sinon.spy(); - this.srp.register_send_verifier = callback; + this.srp.remote.register_send_verifier = callback; this.srp.register(); this.expectRequest('register/salt/', "I=user") this.respondXML("<salt>5d3055e0acd3ddcfc15</salt>"); - expect(callback).toHaveBeenCalledWith("adcd57b4a4a05c2e205b0b7b30014d9ff635d8d8db2f502f08e9b9c132800c44"); + expect(callback).toHaveBeenCalledWith("adcd57b4a4a05c2e205b0b7b30014d9ff635d8d8db2f502f08e9b9c132800c44", this.srp.registered_user); }); it("identifies after successful registration (INTEGRATION)", function(){ |