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



    describe "indexing and searching", ->
        it "Given I index four notes", (done) ->
            async.series [
                createNoteFunction "Note 01", "little stories begin"
                createNoteFunction "Note 02", "great dragons are coming"
                createNoteFunction "Note 03", "small hobbits are afraid"
                createNoteFunction "Note 04", "such as humans"
            ], ->
                done()
            
        it "When I send a request to search the notes with dragons", (done) ->
            client.post "data/search/note", { query: "dragons" }, \
                    (error, response, body) =>
                @result = body
                done()

        it "Then result is the second note I created", ->


# helpers

dragonNoteId = "0"

# Function for async to create and index notes
createNoteFunction = (title, content) ->
    (callback) ->
