         editor1 = atom.rootView.getActiveView()
         buffer = editor1.getBuffer()
         editor1.splitRight()
-        expect(rootView.getActiveView()).toBe atom.rootView.getEditors()[2]
+        expect(atom.rootView.getActiveView()).toBe atom.rootView.getEditors()[2]
 
         refreshRootViewAndProject()
 
-        expect(rootView.getEditors().length).toBe 2
-        expect(rootView.getActiveView()).toBe atom.rootView.getEditors()[1]
-        expect(rootView.title).toBe "untitled - #{project.getPath()}"
+        expect(atom.rootView.getEditors().length).toBe 2
+        expect(atom.rootView.getActiveView()).toBe atom.rootView.getEditors()[1]
+        expect(atom.rootView.title).toBe "untitled - #{atom.project.getPath()}"
 
     describe "when there are open editors", ->
       it "constructs the view with the same panes", ->

            atom.rootView.open().then (o) -> editor = o

          runs ->
            expect(rootView.getActivePane().activeItem).toBe editor
            expect(editor.getPath()).toBeUndefined()
            expect(rootView.getActivePane().focus).toHaveBeenCalled()

        it "can create multiple empty edit sessions as items on a pane", ->
          editor1 = null

            atom.rootView.open('b').then (o) -> editor = o

          runs ->
            expect(atom.rootView.getActivePane().activeItem).toBe editor
            expect(editor.getPath()).toBe require.resolve('./fixtures/dir/b')
            expect(atom.rootView.getActivePane().focus).toHaveBeenCalled()

    describe "when there is an active pane", ->
      [activePane] = []
