 
       describe "when a file is removed", ->
         it "closes editors with filepaths belonging to the removed file", ->
-          jasmine.attachToDOM(workspaceElement)
-
           waitForWorkspaceOpenEvent ->
             atom.workspace.open(filePath2)
 


      describe "when a directory is removed", ->
        it "closes editors with filepaths belonging to the removed folder", ->
          jasmine.attachToDOM(workspaceElement)

          waitForWorkspaceOpenEvent ->
            atom.workspace.open(filePath2)


            expect(openFilePaths).toEqual([])

        it "does not close modified editors with filepaths belonging to the removed folder", ->
          waitForWorkspaceOpenEvent ->
            atom.workspace.open(filePath2)

