 
       beforeEach ->
         waitsForPromise ->
-          atom.project.open('sample.txt').then (o) ->
+          atom.workspace.open('sample.txt').then (o) ->
             editor2 = o
             pane.activateItem(editor2)
 

        editor2 = null

        waitsForPromise ->
          atom.project.open('sample.txt').then (o) -> editor2 = o

        runs ->
          pane.activateItem(editor2)

          workspaceElement.querySelector('.tree-view')

        waitsForPromise ->
          atom.workspace.open('sample.js').then (o) -> editor1 = o

        runs ->
          pane.activateItem(editor1)
