       editor = rootView.getActiveView()
       originalText = editor.getText()
       originalPath = editor.getPath()
-      fsUtils.write(originalPath, 'making a change for the better')
+      fsUtils.writeSync(originalPath, 'making a change for the better')
       git.getPathStatus(originalPath)
 
       newPath = project.resolve('newsample.js')
-      fsUtils.write(newPath, '')
+      fsUtils.writeSync(newPath, '')
       git.getPathStatus(newPath)
 
     afterEach ->
-      fsUtils.write(originalPath, originalText)
+      fsUtils.writeSync(originalPath, originalText)
       fsUtils.remove(newPath) if fsUtils.exists(newPath)
 
     it "displays all new and modified paths", ->

      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", ->


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

      afterEach ->
