 
       beforeEach ->
         ignoreFile = path.join(project.getPath(), '.gitignore')
-        fsUtils.write(ignoreFile, 'sample.js')
+        fsUtils.writeSync(ignoreFile, 'sample.js')
         config.set("core.excludeVcsIgnoredPaths", true)
 
       afterEach ->

      originalText = editor.getText()
      originalPath = editor.getPath()
      newPath = project.resolve('newsample.js')
      fsUtils.write(newPath, '')

    afterEach ->
      fsUtils.write(originalPath, originalText)
      fsUtils.remove(newPath) if fsUtils.exists(newPath)

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

      editor = rootView.getActiveView()
      originalText = editor.getText()
      originalPath = editor.getPath()
      fsUtils.writeSync(originalPath, 'making a change for the better')
      git.getPathStatus(originalPath)

      newPath = project.resolve('newsample.js')
      fsUtils.writeSync(newPath, '')
      git.getPathStatus(newPath)

    afterEach ->
      fsUtils.writeSync(originalPath, originalText)
      fsUtils.remove(newPath) if fsUtils.exists(newPath)

    it "displays all new and modified paths", ->
