+http = require('http')
 should = require('chai').Should()
 client = require('../common/test/client')
 server = require('../server')

        it "Then I got expected application in a list", ->
            @body.rows.length.should.equal 2
            @body.rows[1].name.should.equal "My App"


describe "Users", ->


        it "Then it sends me back my app with an id and a state", ->
            @response.statusCode.should.equal 201
            should.exist @body.success
            should.exist @body.app
            should.exist @body.app.slug
            should.exist @body.app.port
            @body.success.should.ok
            @body.app.slug.should.equal "my-app"
            @body.app.port.should.equal 8001

        it "When I send a request to retrieve all applications", (done) ->
            client.get "api/applications", (error, response, body) =>
