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

      it "makes the tab permanent in the other pane", ->
        editor1 = null
        waitsForPromise ->
          atom.project.open('sample.txt').then (o) -> editor1 = o

        runs ->
          pane.activateItem(editor1)

      it "removes the 'temp' class", ->
        editor1 = null
        waitsForPromise ->
          atom.workspace.open('sample.txt').then (o) -> editor1 = o

        runs ->
          pane.activateItem(editor1)
