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

    describe "when the item has a path", ->
      it "selects the entry with that path in the tree view if it is visible", ->
        sampleJs.click()
        rootView.open(require.resolve('fixtures/tree-view/tree-view.txt'))

        expect(sampleTxt).toHaveClass 'selected'
        expect(treeView.find('.selected').length).toBe 1

        it "opens the file in the editor and focuses it", ->
          treeView.root.find('.file:contains(tree-view.js)').click()
          treeView.root.trigger 'tree-view:open-selected-entry'
          expect(rootView.getActiveView().getPath()).toBe project.resolve('tree-view.js')
          expect(rootView.getActiveView().isFocused).toBeTruthy()

      describe "when a directory is selected", ->
