 path = require 'path'
 fs = require 'fs'
 should = require('chai').should()
+expect = require('chai').expect
 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.length.should.equal 1
                    body[0].value.docType.should.equal @doctype
                    Object.keys(@doc).forEach (field) ->
                        should.exist body[0].value[field]

                ds.get 'doctypes', (err, res, body) ->
                    should.not.exist err
                    should.exist body
                    body.should.be.empty
                    done()

        describe "When resetDatabase is called with option removeView", ->
