     [ignoreFile] = []
 
     beforeEach ->
-      ignoreFile = fsUtils.join(fsUtils.resolveOnLoadPath('fixtures/tree-view'), '.gitignore')
+      ignoreFile = path.join(fsUtils.resolveOnLoadPath('fixtures/tree-view'), '.gitignore')
       fsUtils.write(ignoreFile, 'tree-view.js')
       config.set "core.hideGitIgnoredFiles", false
 


          describe "when a file already exists at that location", ->
            it "shows an error message and does not close the dialog", ->
              newPath = fsUtils.join(dirPath, "new-test-file.txt")
              fsUtils.write(newPath, '')
              addDialog.miniEditor.insertText(path.basename(newPath))
              addDialog.trigger 'core:confirm'

    temporaryFilePath = null

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