 
           expect(csvEditor.serialize()).toEqual({
             deserializer: 'CSVEditor'
-            filePath: csvDest
+            filePath: absCsvDest
             options: csvEditor.options
             choice: 'TableEditor'
             layout:

CHANGE_TIMEOUT = 400

describe "CSVEditor", ->
  [csvEditor, csvEditorElement, csvDest, projectPath, tableEditor, tableEditorElement, openSpy, destroySpy, savedContent, spy, tableEditPackage, nextAnimationFrame] = []

  sleep = (ms) ->
    start = new Date

        waitsFor 'change path callback called', -> spy.callCount > 0

      it 'detects the change in path', ->
        relativePath = atom.project.relativizePath(newPath)
        expect(atom.project.relativizePath(spy.mostRecentCall.args[0])).toEqual(relativePath)
        expect(atom.project.relativizePath(csvEditor.getPath())).toEqual(relativePath)

      it 'changes the key path to the settings', ->
        expect(tableEditPackage.csvConfig.move).toHaveBeenCalled()

      it 'dispatches a did-change-title event', ->
        expect(spyTitle).toHaveBeenCalledWith('new-file.csv')
