     [filePath, newPath, bufferToChange, eventHandler] = []
 
     beforeEach (done) ->
-      tempDir = temp.mkdirSync('text-buffer')
+      tempDir = fs.realpathSync(temp.mkdirSync('text-buffer'))
       filePath = join(tempDir, "manipulate-me")
       newPath = "#{filePath}-i-moved"
       fs.writeFileSync(filePath, "")

    [filePath, bufferToDelete] = []

    beforeEach (done) ->
      tempDir = temp.mkdirSync()
      filePath = join(tempDir, 'atom-file-to-delete.txt')
      fs.writeFileSync(filePath, 'delete me')
      bufferToDelete = new TextBuffer({filePath, load: false})

    [filePath, bufferToChange, eventHandler] = []

    beforeEach (done) ->
      tempDir = fs.realpathSync(temp.mkdirSync('text-buffer'))
      filePath = join(tempDir , "manipulate-me")
      fs.writeFileSync(filePath, "")
      bufferToChange = new TextBuffer({filePath, load: false})
