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

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

      it 'detects the change in path', ->
        expect(spy).toHaveBeenCalledWith(newPath)
        expect(csvEditor.getPath()).toEqual(newPath)

      it 'changes the key path to the settings', ->
        expect(tableEditPackage.csvConfig.get(csvDest)).toBeUndefined()
        expect(tableEditPackage.csvConfig.get(newPath)).toBeDefined()

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

      runs ->
        expect(csvEditor.serialize()).toEqual({
          deserializer: 'CSVEditor'
          filePath: absCsvDest
          options: csvEditor.options
          choice: undefined
        })
