 
           # Opening another file reuses the same window and does not change the
           # project paths.
-          .startAnotherAtom([tempFilePath], ATOM_HOME: AtomHome)
+          .startAnotherAtom([tempFilePath], ATOM_HOME: atomHome)
           .waitForPaneItemCount(2, 5000)
           .waitForWindowCount(1, 1000)
           .treeViewRootDirectories()


    describe "launching with no path", ->
      it "always opens a new window with a single untitled buffer", ->
        runAtom [], {ATOM_HOME: AtomHome}, (client) ->
          client
            .waitForExist("atom-workspace")
            .waitForPaneItemCount(1, 5000)

        runAtom [], {ATOM_HOME: AtomHome}, (client) ->
          client
            .waitForExist("atom-workspace")
            .waitForPaneItemCount(1, 5000)


          # Opening one of those directories again reuses the same window and
          # does not change the project paths.
          .startAnotherAtom([nestedDir], ATOM_HOME: atomHome)
          .waitForExist("atom-workspace", 5000)
          .treeViewRootDirectories()
          .then ({value}) -> expect(value).toEqual([tempDirPath, otherTempDirPath])
