diff options
author | Azul <azul@riseup.net> | 2012-11-12 11:14:58 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-11-12 11:14:58 +0100 |
commit | 71ba8a28ebf04b84a9d2f0eb1a64dedec2ec8fe3 (patch) | |
tree | edc08f1b2c6b05f5d11ead5caf02680ec79ec0cc /spec/restful/login.js | |
parent | e5ae94132bb55fdd10090dcd427e95e33e31f15e (diff) |
adopting tests to new .json urls
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 9c43c00..4df62a8 100644 --- a/spec/restful/login.js +++ b/spec/restful/login.js @@ -52,9 +52,9 @@ describe("Login", function() { var success = sinon.spy(); this.srp.identify(success); - this.expectRequest('sessions', 'login=' +login+ '&A=' +A, 'POST'); + this.expectRequest('sessions.json', 'login=' +login+ '&A=' +A, 'POST'); this.respondJSON({salt: salt, B: B}); - this.expectRequest('sessions/'+login, 'client_auth='+M, 'PUT'); + this.expectRequest('sessions/'+login+'.json', 'client_auth='+M, 'PUT'); this.respondJSON({M2: M2}); expect(success).toHaveBeenCalled(); @@ -65,7 +65,7 @@ describe("Login", function() { var error = sinon.spy(); this.srp.identify(success, error); - this.expectRequest('sessions', 'login=' +login+ '&A=' +A, 'POST'); + this.expectRequest('sessions.json', 'login=' +login+ '&A=' +A, 'POST'); this.respondJSON({salt: salt, B: 0}); // aborting if B=0 expect(this.requests).toEqual([]); |