           fs.writeFileSync(originalPath, 'making a change for the better')
           atom.project.getRepositories()[0].getPathStatus(originalPath)
 
-          newPath = atom.project.resolve('newsample.js')
+          newPath = atom.project.getDirectories()[0].resolve('newsample.js')
           fs.writeFileSync(newPath, '')
           atom.project.getRepositories()[0].getPathStatus(newPath)
 

      runs ->
        [topPane, bottomPane] = atom.workspace.getPanes()
        expect(atom.workspace.getActivePane()).toBe bottomPane
        expect(atom.workspace.getActiveTextEditor().getPath()).toBe atom.project.resolve(filePath)

  describe "when the filter text contains a colon followed by a number", ->
    beforeEach ->


        describe "symlinks on #darwin or #linux", ->
          beforeEach ->
            fs.symlinkSync(atom.project.getDirectories()[0].resolve('sample.txt'), atom.project.getDirectories()[0].resolve('symlink-to-file'))
            fs.symlinkSync(atom.project.getDirectories()[0].resolve('dir'), atom.project.getDirectories()[0].resolve('symlink-to-dir'))

          it "includes symlinked file paths", ->
            jasmine.attachToDOM(workspaceElement)
