             it "Then I should have 0 documents returned", ->
                 @body.should.have.length 0
 
+            it "When I send a request to delete a doc from even_num with complex query", (done) ->
+                client.put "request/all/even_num_array/destroy/", \
+                            {startkey: ["test", 8], endkey: ["test", 8, {}]}, \
+                            (err, response, body) ->
+                    response.statusCode.should.equal 204
+                    should.not.exist err
+                    done()
+
             it "And I send a request to grab all docs from even_num", (done) ->
                 client.post "request/all/even_num/", {}, \
                             (error, response, body) =>

                    res.views.should.have.property 'even_num', @viewEven
                    done()

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


            it "When I send a request to get doc with num = 10", (done) ->
                client.post "request/all/even_num/", key: 10, \
                            (error, response, body) =>
                    response.statusCode.should.equal 200
                    @body = body
                    done()

            it "Then I should have 1 documents returned", ->
                @body.should.have.length 1

            it "When I send a request to get doc with complex query", (done) ->
                client.post "request/all/even_num_array/", \
                    {startkey: ["test", 10], endkey: ["test", 10, {}]}, \
                            (error, response, body) =>
                    response.statusCode.should.equal 200
                    @body = body
