                     should.not.exist err
                     should.exist body
                     body.should.have.property 'rows'
-                    body.rows.length.should.equal 3
+                    body.rows.should.have.length 3
                     body.rows[0].id.should.equal "_design/device"
                     body.rows[1].id.should.equal "_design/doctypes"
                     body.rows[2].id.should.equal "_design/tags"

path = require 'path'
fs = require 'fs'
should = require('chai').should()
sinon = require 'sinon'
nock = require 'nock'
Client = require('request-json').JsonClient

                ds.post "request/#{@doctype}/all/", {}, (err, res, body) =>
                    should.not.exist err
                    should.exist body
                    body.should.have.length 1
                    body[0].value.docType.should.equal @doctype
                    Object.keys(@doc).forEach (field) ->
                        should.exist body[0].value[field]
