             it "When I send a request to access view every_docs", (done) ->
                 client.get "request/every_docs/", (error, response, body) =>
                     response.statusCode.should.equal 200
-                    @body = parseBody response, body
+                    @body = body
                     done()
 
             it "Then I should have 101 documents returned", ->

    delete @body
    delete @response

parseBody = (response, body) ->
    if typeof body is "object" then body else JSON.parse body

randomString = (length=32) ->
    string = ""

should = require('chai').Should()
async = require('async')
Client = require('request-json').JsonClient
app = require('../server')

client = new Client("http://localhost:8888/")
