     describe "#removeDocumentsOf", ->
 
         describe "When removeDocumentsOf is called with an object as parameter", ->
+
+            before (done) -> fixtures.resetDatabase
+                                removeAllViews: true
+                                callback: done
+
             before (done) -> fixtures.load doctypeTarget: 'Alarm', callback: done
 
             it "There should be an error", (done) ->

    describe "Remove Every Views", ->

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

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

                @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"
