     temporaryFilePath = null
 
     beforeEach ->
-      temporaryFilePath = fsUtils.join(fsUtils.resolveOnLoadPath('fixtures/tree-view'), 'temporary')
+      temporaryFilePath = path.join(fsUtils.resolveOnLoadPath('fixtures/tree-view'), 'temporary')
       if fsUtils.exists(temporaryFilePath)
         fsUtils.remove(temporaryFilePath)
         waits(20)


            it "selects the created directory", ->
              treeView.attachToDom()
              newPath = fsUtils.join(dirPath, "new2/")
              addDialog.miniEditor.insertText("new2/")
              addDialog.trigger 'core:confirm'
              expect(fsUtils.exists(newPath)).toBeTruthy()

          describe "when no file or directory exists at the given path", ->
            it "adds a directory and closes the dialog", ->
              treeView.attachToDom()
              newPath = path.join(dirPath, "new/dir")
              addDialog.miniEditor.insertText("new/dir/")
              addDialog.trigger 'core:confirm'
              expect(fsUtils.exists(newPath)).toBeTruthy()
