           changeHandler.callCount == 1
 
         runs ->
-          expect(removeHandler).not.toHaveBeenCalled()
+          expect(deleteHandler).not.toHaveBeenCalled()
           fs.writeFileSync(filePath, "Hallelujah!")
           changeHandler.reset()
 

      afterEach ->
        if fs.existsSync(newPath)
          fs.removeSync(newPath)
          removeHandler = jasmine.createSpy('removeHandler')
          file.on 'removed', removeHandler
          waitsFor "remove event", 30000, -> removeHandler.callCount > 0

      it "it updates its path", ->
        moveHandler = jasmine.createSpy('moveHandler')

      file.readSync()

    describe "when the contents of the file change", ->
      it "notifies ::onDidChange observers", ->
        changeHandler = jasmine.createSpy('changeHandler')
        file.onDidChange changeHandler
        fs.writeFileSync(file.getPath(), "this is new!")

        waitsFor "change event", ->
