     [projectPath] = []
 
     beforeEach ->
-      projectPath = atom.project.resolve('git/working-dir')
+      projectPath = atom.project.getDirectories()[0].resolve('git/working-dir')
       fs.moveSync(path.join(projectPath, 'git.git'), path.join(projectPath, '.git'))
       atom.project.setPaths([projectPath])
 

          fs.writeFileSync(originalPath, 'making a change for the better')
          atom.project.getRepositories()[0].getPathStatus(originalPath)

          newPath = atom.project.resolve('newsample.js')
          fs.writeFileSync(newPath, '')
          atom.project.getRepositories()[0].getPathStatus(newPath)


          editor = atom.workspace.getActiveTextEditor()
          originalText = editor.getText()
          originalPath = editor.getPath()
          newPath = atom.project.getDirectories()[0].resolve('newsample.js')
          fs.writeFileSync(newPath, '')

      describe "when a modified file is shown in the list", ->
