   pathToOpen = null
 
   beforeEach ->
-    atom.project.setPath(project.resolve('dir'))
+    atom.project.setPath(atom.project.resolve('dir'))
     pathToOpen = atom.project.resolve('a')
     atom.rootView = new RootView
     atom.rootView.enableKeymap()

        editor1 = atom.rootView.getActiveView()
        buffer = editor1.getBuffer()
        editor1.splitRight()
        expect(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()}"

    describe "when there are open editors", ->
      it "constructs the view with the same panes", ->

    refreshRootViewAndProject = ->
      project2 = atom.replicate().get('project')
      atom.project = project2
      rootViewState = atom.rootView.serialize()
      atom.project.getState().serializeForPersistence()
      atom.rootView.remove()
      atom.project.destroy()
