     beforeEach ->
       filePath = join(__dirname, "fixtures", "manipulate-me")
       newPath = "#{filePath}-i-moved"
-      fs.writeFileSync(filePath, "")
+      writeFileSync(filePath, "")
       bufferToChange = new TextBuffer({filePath, load: true})
       eventHandler = jasmine.createSpy('eventHandler')
       bufferToChange.on 'path-changed', eventHandler

        describe "when the disk contents were changed since serialization", ->
          it "loads the disk contents instead of the previous unsaved state", ->
            buffer.setText("BUFFER CHANGE")
            fs.writeFileSync(filePath, "DISK CHANGE")

            buffer2 = buffer.testSerialization()


        saveBuffer.save()
        saveBuffer.setText('ab')

        writeFileSync(saveBuffer.getPath(), 'c')
        conflictHandler = jasmine.createSpy('conflictHandler')
        saveBuffer.on 'contents-conflicted', conflictHandler

