 
     describe "when the tree view is visible", ->
       beforeEach ->
-        expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
+        expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
 
       it "hides the tree view", ->
         workspaceElement.focus()
         waitsForPromise -> treeView.toggle()
         runs ->
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(false)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(false)
 
     describe "when the tree view is hidden", ->
       it "shows and focuses the tree view", ->
         atom.workspace.getLeftDock().hide()
-        expect(atom.workspace.getLeftDock().isOpen()).toBe(false)
+        expect(atom.workspace.getLeftDock().isVisible()).toBe(false)
         waitsForPromise -> treeView.toggle()
         runs ->
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
           expect(treeView.element).toHaveFocus()
 
   describe "when tree-view:toggle-focus is triggered on the root view", ->


        runs ->
          workspaceElement.focus()
          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
          waitsForPromise -> treeView.toggleFocus()
          runs ->
            expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
            expect(treeView.element).toHaveFocus()

      describe "when the tree view is focused", ->


          runs ->
            treeView.focus()
            expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
            treeView.toggleFocus()
            expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
            expect(treeView.element).not.toHaveFocus()

  describe "when the tree-view is destroyed", ->
