diff options
author | Azul <azul@riseup.net> | 2013-03-20 12:52:24 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-03-20 12:52:24 +0100 |
commit | cc31045a9215ea255ab686040fce804859aadde7 (patch) | |
tree | 5afee96076bd922653231af818e98d5147457dff /spec/login_spec.js | |
parent | cb46537c98db3cb7ac8cf23de243a86aa4a36acd (diff) | |
parent | d29d1146865d36e9d9789d3936e7a9163511be0a (diff) |
Merge branch 'release/0.3.0' into develop
Diffstat (limited to 'spec/login_spec.js')
-rw-r--r-- | spec/login_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/login_spec.js b/spec/login_spec.js index 16a63d0..e806cff 100644 --- a/spec/login_spec.js +++ b/spec/login_spec.js @@ -45,9 +45,9 @@ describe("Login with srp var", function() { srp.loggedIn = sinon.spy(); srp.login(); - this.expectRequest('sessions.json', 'login=' +login+ '&A=' +A, 'POST'); + this.expectRequest('/sessions.json', 'login=' +login+ '&A=' +A, 'POST'); this.respondJSON({salt: salt, B: B}); - this.expectRequest('sessions/'+login+'.json', 'client_auth='+M, 'PUT'); + this.expectRequest('/sessions/'+login+'.json', 'client_auth='+M, 'PUT'); this.respondJSON({M2: M2}); expect(srp.loggedIn).toHaveBeenCalled(); @@ -58,7 +58,7 @@ describe("Login with srp var", function() { var error = {login: "something went wrong on the server side"}; srp.login(); - this.expectRequest('sessions.json', 'login=' +login+ '&A=' +A, 'POST'); + this.expectRequest('/sessions.json', 'login=' +login+ '&A=' +A, 'POST'); this.respondJSON(error, 422); //this.expectNoMoreRequests(); @@ -72,7 +72,7 @@ describe("Login with srp var", function() { srp.error = sinon.spy(); srp.login(); - this.expectRequest('sessions.json', '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([]); |