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


      sampleJs.trigger clickEvent(originalEvent: { detail: 1 })
      expect(sampleJs).toHaveClass 'selected'
      expect(rootView.getActiveView().getPath()).toBe fs.resolveOnLoadPath('fixtures/tree-view/tree-view.js')
      expect(rootView.getActiveView().isFocused).toBeFalsy()

      sampleTxt.trigger clickEvent(originalEvent: { detail: 1 })
      expect(sampleTxt).toHaveClass 'selected'
      expect(treeView.find('.selected').length).toBe 1
      expect(rootView.getActiveView().getPath()).toBe fs.resolveOnLoadPath('fixtures/tree-view/tree-view.txt')
      expect(rootView.getActiveView().isFocused).toBeFalsy()

  describe "when a file is double-clicked", ->
    it "selects the file and opens it in the active editor on the first click, then changes focus to the active editor on the second", ->
      sampleJs.trigger clickEvent(originalEvent: { detail: 1 })
      expect(sampleJs).toHaveClass 'selected'
      expect(rootView.getActiveView().getPath()).toBe fs.resolveOnLoadPath('fixtures/tree-view/tree-view.js')
      expect(rootView.getActiveView().isFocused).toBeFalsy()

      sampleJs.trigger clickEvent(originalEvent: { detail: 2 })


    beforeEach ->
      config.set "core.hideGitIgnoredFiles", false
      ignoreFile = path.join(project.getPath(), '.gitignore')
      fs.writeSync(ignoreFile, 'tree-view.js')
      project.getRepo().getPathStatus(ignoreFile)

      newFile = path.join(project.resolve('dir2'), 'new2')
      fs.writeSync(newFile, '')
      project.getRepo().getPathStatus(newFile)

      modifiedFile = path.join(project.resolve('dir1'), 'file1')
      originalFileContent = fs.read(modifiedFile)
      fs.writeSync modifiedFile, 'ch ch changes'
      project.getRepo().getPathStatus(modifiedFile)
