+http = require 'http'
 should = require('chai').Should()
 async = require('async')
 Client = require('request-json').JsonClient


        client.post "data/", note, (error, response, body) ->
            console.log error if error
            client.post "data/index/#{body._id}",
                fields: ["title", "content"]
                , callback


describe "Indexation", ->

    # Start application before starting tests.
    before (done) ->
        app.listen(8888)
        done()

    # Clear DB, create a new one, then init data for tests.


            it "Then it returns a 404 error", ->
                @response.statusCode.should.equal 404
