     beforeEach ->
       atom.deactivatePackage('tree-view')
 
-      rootDirPath = fsUtils.join(fsUtils.absolute("/tmp"), "atom-tests")
+      rootDirPath = path.join(fsUtils.absolute("/tmp"), "atom-tests")
       fsUtils.remove(rootDirPath) if fsUtils.exists(rootDirPath)
 
-      dirPath = fsUtils.join(rootDirPath, "test-dir")
-      filePath = fsUtils.join(dirPath, "test-file.txt")
+      dirPath = path.join(rootDirPath, "test-dir")
+      filePath = path.join(dirPath, "test-file.txt")
       fsUtils.makeDirectory(rootDirPath)
       fsUtils.makeDirectory(dirPath)
       fsUtils.write(filePath, "doesn't matter")

        describe "when the path without a trailing '/' is changed and confirmed", ->
          describe "when no file exists at that location", ->
            it "add a file, closes the dialog and selects the file in the tree-view", ->
              newPath = fsUtils.join(dirPath, "new-test-file.txt")
              addDialog.miniEditor.insertText(path.basename(newPath))
              addDialog.trigger 'core:confirm'
              expect(fsUtils.exists(newPath)).toBeTruthy()

        describe "when the path is changed and confirmed", ->
          describe "when all the directories along the new path exist", ->
            it "moves the file, updates the tree view, and closes the dialog", ->
              newPath = path.join(rootDirPath, 'renamed-test-file.txt')
              moveDialog.miniEditor.setText(newPath)

              moveDialog.trigger 'core:confirm'
