       "logger-sharelatex":
         log:->
         err:->
+      "response":response
+      "rimraf":@Rimraf
     @location = "/tmp"
     @name1 = "530f2407e7ef165704000007/530f838b46d9a9e859000008"
     @name1Filtered ="530f2407e7ef165704000007_530f838b46d9a9e859000008"


  describe "deleteDirectory", ->
    beforeEach ->
      @Fs.rmdir.callsArgWith(1,@error)

    it "Should call rmdir with correct options", (done) ->
      @FSPersistorManager.deleteDirectory @location, @name1, (err) =>
        @Fs.rmdir.calledWith("#{@location}/#{@name1}").should.equal.true
        done()

    it "Should propogate the error", (done) ->

      unlink:sinon.stub()
      rmdir:sinon.stub()
      exists:sinon.stub()
    @Rimraf = sinon.stub()
    @LocalFileWriter =
      writeStream: sinon.stub()
    @requires =
