diff options
| author | Azul <azul@riseup.net> | 2012-11-14 12:21:00 +0100 | 
|---|---|---|
| committer | Azul <azul@riseup.net> | 2012-11-14 12:21:00 +0100 | 
| commit | 0bf072f0e5d26016e61fbe68a5c0fec60e13e5e3 (patch) | |
| tree | 6e0ed4b49d20df7c5f5c26ea678bed6eff34ec89 /spec/django/signup.js | |
| parent | 7b73cbd591aa9ac3f46400c040ae14ec26e2d839 (diff) | |
removed outdated django remote and all related files
Also cleaned up the specs a bit
Diffstat (limited to 'spec/django/signup.js')
| -rw-r--r-- | spec/django/signup.js | 50 | 
1 files changed, 0 insertions, 50 deletions
| diff --git a/spec/django/signup.js b/spec/django/signup.js deleted file mode 100644 index 383dd14..0000000 --- a/spec/django/signup.js +++ /dev/null @@ -1,50 +0,0 @@ -describe("Signup", function() { - -  beforeEach(function() { -    this.srp = new SRP(); -    specHelper.setupFakeXHR.apply(this); -  }); - -  afterEach(function() { -    this.xhr.restore(); -  }); - -  it("has a register function", function() { -    expect(typeof this.srp.register).toBe('function'); -  }); - -  it("receives the salt from /register/salt", function(){ -    var callback = sinon.spy(); -    this.srp.remote.sendVerifier = callback; -    this.srp.register(); -    this.expectRequest('register/salt/', "I=user") -    this.respondXML("<salt>5d3055e0acd3ddcfc15</salt>"); -    expect(callback).toHaveBeenCalledWith(this.srp.session, this.srp.registered_user); -  }); - -  it("identifies after successful registration (INTEGRATION)", function(){ -    var callback = sinon.spy(); -    this.srp.identify = callback; -    this.srp.register(); -    this.expectRequest('register/salt/', "I=user") -    this.respondXML("<salt>5d3055e0acd3ddcfc15</salt>"); -    this.expectRequest('register/user/', "v=adcd57b4a4a05c2e205b0b7b30014d9ff635d8d8db2f502f08e9b9c132800c44"); -    this.respondXML("<ok />"); -    expect(callback).toHaveBeenCalled(); -  }); - -  it("identifies after successful registration with JSON (INTEGRATION)", function(){ -    var callback = sinon.spy(); -    this.srp.identify = callback; -    this.srp.register(); -    this.expectRequest('register/salt/', "I=user") -    this.respondJSON({salt: "5d3055e0acd3ddcfc15"}); -    this.expectRequest('register/user/', "v=adcd57b4a4a05c2e205b0b7b30014d9ff635d8d8db2f502f08e9b9c132800c44"); -    this.respondJSON({ok: true}); -    expect(callback).toHaveBeenCalled(); -  }); - - -}); - - | 
