 
             it "Then error 404 should be returned", ->
                 @response.statusCode.should.equal 404
+        
+        describe "Access to an existing view : no_doc", ->
+            before cleanRequest
+
+            it "When I send a request to access view no_doc", (done) ->
+                client.get "request/no_doc/", (error, response, body) =>
+                    response.statusCode.should.equal 200
+                    @body = parseBody response, body
+                    done()
+
+            it "Then I should have no document returned", ->
+                @body.should.have.length 0
+
+        describe "Access to an existing view : every_docs", (done) ->
+            before cleanRequest
+
+            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
+                    done()
+
+            it "Then I should have 101 documents returned", ->
+                @body.should.have.length 101

            console.log 'DB destroyed'
            db.create ->
                console.log 'DB recreated'
                db.save '321', {"value":"val"}, ->
                    done()

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




    describe "Access to a view without option", ->
        describe "Access to a non existing view", ->
            before cleanRequest

