                 ])
 
     describe 'when the file is moved', ->
-      [spy, configSpy, newPath, spyTitle] = []
+      [spy, newPath, spyTitle] = []
 
       beforeEach ->
         jasmine.useRealClock?()

          spyTitle = jasmine.createSpy('did-change-title')
          csvEditor.onDidChangePath(spy)
          csvEditor.onDidChangeTitle(spyTitle)
          spyOn(tableEditPackage.csvConfig, 'move')

          newPath = path.join(projectPath, 'new-file.csv')
          fsp.removeSync(newPath)

          waitsFor 'delete callback called', -> deleteSpy.callCount > 0

        it "retains its path and reports the buffer as not modified", ->
          expect(csvEditor.getPath()).toBe(csvDest)
          expect(csvEditor.isModified()).toBeFalsy()

      describe 'when resaved', ->
