                 @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 _addDoc is called with a document with a field _attachments", ->
            before (done) -> fixtures.resetDatabase callback: done
            before (done) ->
                @doc = require('./fixtures/fixtures-with-attachment.json')[0]
                @attachment = @doc._attachments

    describe "Remove Every Views", ->

        describe "When removeEveryViews is called without parameters", ->

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

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