rest-sessions
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -52,3 +52,3 @@ // Generated by CoffeeScript 1.6.2 | ||
app.post('/:app/create/:id', function(req, res) { | ||
app.put('/:app/create/:id', function(req, res) { | ||
rs.create({ | ||
@@ -55,0 +55,0 @@ app: req.params.app, |
{ | ||
"name": "rest-sessions", | ||
"description": "A REST interface for redis-sessions", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "P. Liess <smrchy+npm@gmail.com>", | ||
@@ -6,0 +6,0 @@ "engines": { |
@@ -29,3 +29,3 @@ // Generated by CoffeeScript 1.6.2 | ||
it('POST /TestApp/create/user1 should return 200 and a token', function(done) { | ||
http.request().post('/TestApp/create/user1?ip=127.0.0.1').end(function(resp) { | ||
http.request().put('/TestApp/create/user1?ip=127.0.0.1').end(function(resp) { | ||
var body; | ||
@@ -51,4 +51,4 @@ | ||
}); | ||
it('POST /TestApp/create/user2 should return 200 and a token', function(done) { | ||
http.request().post('/TestApp/create/user2?ip=127.0.0.1').end(function(resp) { | ||
it('PUT /TestApp/create/user2 should return 200 and a token', function(done) { | ||
http.request().put('/TestApp/create/user2?ip=127.0.0.1').end(function(resp) { | ||
var body; | ||
@@ -116,4 +116,4 @@ | ||
}); | ||
it('POST /TestApp/create/user2 should return 200 and a token', function(done) { | ||
http.request().post('/TestApp/create/user2?ip=127.0.0.1').end(function(resp) { | ||
it('PUT /TestApp/create/user2 should return 200 and a token', function(done) { | ||
http.request().put('/TestApp/create/user2?ip=127.0.0.1').end(function(resp) { | ||
var body; | ||
@@ -139,4 +139,4 @@ | ||
}); | ||
it('POST /TestApp/create/user2 create another session for user2', function(done) { | ||
http.request().post('/TestApp/create/user2?ip=127.0.0.2').end(function(resp) { | ||
it('PUT /TestApp/create/user2 create another session for user2', function(done) { | ||
http.request().put('/TestApp/create/user2?ip=127.0.0.2').end(function(resp) { | ||
resp.statusCode.should.equal(200); | ||
@@ -143,0 +143,0 @@ done(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23797