From 94d1938e2e5d0ee5e8e7b9a8ed44a067677e0133 Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 3 Aug 2012 20:37:11 +0200 Subject: 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 --- spec/DjangoSpecRunner.html | 1 + spec/signup.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/DjangoSpecRunner.html b/spec/DjangoSpecRunner.html index c818392..8315c5b 100644 --- a/spec/DjangoSpecRunner.html +++ b/spec/DjangoSpecRunner.html @@ -20,6 +20,7 @@ + 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("5d3055e0acd3ddcfc15"); - expect(callback).toHaveBeenCalledWith("adcd57b4a4a05c2e205b0b7b30014d9ff635d8d8db2f502f08e9b9c132800c44"); + expect(callback).toHaveBeenCalledWith("adcd57b4a4a05c2e205b0b7b30014d9ff635d8d8db2f502f08e9b9c132800c44", this.srp.registered_user); }); it("identifies after successful registration (INTEGRATION)", function(){ -- cgit v1.2.3