         children.each (index, child) ->
           $(child).view().expand()
 
-      describe "when an expanded directory is recursively collapsed", ->
-        it "collapses the directory and all its child directories", ->
-          parent.click().expand()
-          expect(parent).toHaveClass 'expanded'
-          children.each (index, child) ->
-            $(child).view().click().expand()
-            expect($(child).view()).toHaveClass 'expanded'
-
-          treeView.trigger 'tree-view:recursive-collapse-directory'
-
-          expect(parent).not.toHaveClass 'expanded'
-          children.each (index, child) ->
-            expect($(child).view()).not.toHaveClass 'expanded'
-          expect(treeView.root).toHaveClass 'expanded'
+      # describe "when an expanded directory is recursively collapsed", ->
+      #   it "collapses the directory and all its child directories", ->
+      #     parent.click().expand()
+      #     expect(parent).toHaveClass 'expanded'
+      #     children.each (index, child) ->
+      #       $(child).view().click().expand()
+      #       expect($(child).view()).toHaveClass 'expanded'
+
+      #     treeView.trigger 'tree-view:recursive-collapse-directory'
+
+      #     expect(parent).not.toHaveClass 'expanded'
+      #     children.each (index, child) ->
+      #       expect($(child).view()).not.toHaveClass 'expanded'
+      #     expect(treeView.root).toHaveClass 'expanded'
 
     describe "tree-view:open-selected-entry", ->
       describe "when a file is selected", ->

        it "duplicates the current file", ->
          expect(copyDialog.miniEditor.getText()).toBe('tree-view.js')

    describe "tree-view:remove", ->
      it "won't remove the root directory", ->
        spyOn(atom, 'confirm')
        atom.workspaceView.attachToDom()
        treeView.show()
        treeView.root.view().click()
        treeView.trigger 'tree-view:remove'

        args = atom.confirm.mostRecentCall.args[0]
        expect(args.buttons).toEqual ['OK']

      it "shows the native alert dialog", ->
        spyOn(atom, 'confirm')

        waitsForFileToOpen ->
          fileView.click()

        runs ->
          treeView.trigger 'tree-view:remove'
          args = atom.confirm.mostRecentCall.args[0]
          expect(Object.keys(args.buttons)).toEqual ['Move to Trash', 'Cancel']

  describe "file system events", ->
    temporaryFilePath = null

        expect(atom.workspaceView.getActiveView().isFocused).toBeFalsy()

  describe "when an directory is alt-clicked", ->
    # describe "when the directory is collapsed", ->
    #   it "recursively expands the directory", ->
    #     treeView.root.click()
    #     treeView.root.collapse()

    #     expect(treeView.root).not.toHaveClass 'expanded'
    #     treeView.root.trigger clickEvent({ altKey: true })
    #     expect(treeView.root).toHaveClass 'expanded'

    #     children = treeView.root.find('.directory')
    #     expect(children.length).toBeGreaterThan 0
    #     children.each (index, child) ->
    #       childView = $(child).view()
    #       expect(childView).toHaveClass 'expanded'

    describe "when the directory is expanded", ->
      parent    = null
