diff options
author | Azul <azul@riseup.net> | 2012-10-15 11:10:35 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-10-15 11:10:35 +0200 |
commit | 09a6d9eb8d0467f311bbae3d6fe2d923244edb21 (patch) | |
tree | 900cb699aaead6d43c25afd13e773671aa948f6e /spec/restful/login.js | |
parent | 2263abad65b92ef26c8e67097bbcfeb6988ab8fd (diff) |
all rest tests passing, using proper verbs
Diffstat (limited to 'spec/restful/login.js')
-rw-r--r-- | spec/restful/login.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/restful/login.js b/spec/restful/login.js index 3bf9dda..0f6aa4f 100644 --- a/spec/restful/login.js +++ b/spec/restful/login.js @@ -49,21 +49,21 @@ describe("Login", function() { this.expectRequest('sessions', 'login=' +login+ '&A=' +A, 'POST'); this.respondJSON({s: salt, B: B}); - this.expectRequest('sessions/'+login, 'client_auth='+M); + this.expectRequest('sessions/'+login, 'client_auth='+M, 'PUT'); this.respondJSON({M: M2}); expect(this.srp.success).toHaveBeenCalled(); }); it("rejects B = 0", function(){ - this.srp.error_message = sinon.spy(); + this.srp.error = sinon.spy(); this.srp.identify(); this.expectRequest('sessions', 'login=' +login+ '&A=' +A, 'POST'); this.respondJSON({s: salt, B: 0}); // aborting if B=0 expect(this.requests).toEqual([]); - expect(this.srp.error_message).toHaveBeenCalled(); + expect(this.srp.error).toHaveBeenCalled(); }); }); |