                 @stub.called.should.be.true
 
         describe "When Data System fails at sending doctypes list", (done) ->
+            before (done) -> fixtures.resetDatabase
+                    removeAllViews: true
+                    callback: done
+
             before ->
                 @sandbox = sinon.sandbox.create()
                 @stub = @sandbox.stub fixtures, "removeDocumentsOf"

                    done()

        describe "When removeEveryViews is called with a list of design to remove", ->

            before (done) ->
                fixtures._createAllRequest 'alarm', ->

    describe "#_addDoc", ->

        describe "When  _addDoc is called with a document", ->
            before (done) -> fixtures.resetDatabase
                    removeAllViews: true
                    callback: done

            before (done) -> fixtures.resetDatabase callback: done

            before (done) ->
                @doc = require('./fixtures/fixtures.json')[0]
                addDoc = fixtures._addDoc @doc
