 
         it 'removes the previous editor markers', ->
           expect(editor.findMarkers(type: 'pigments-color').length).toEqual(2)
-
-  describe 'when the editor is destroyed', ->
-    it 'destroys the color buffer at the same time', ->
-      editor.destroy()
-
-      expect(project.colorBuffersByEditorId[editor.id]).toBeUndefined()

    it 'creates the corresponding markers in the text editor', ->
      expect(editor.findMarkers(type: 'pigments-color').length).toEqual(4)

    describe 'when the project variables becomes available', ->
      [updateSpy] = []
      beforeEach ->

          }
          expect(colorBuffer.serialize()).toEqual(expected)

    ##     ######   #######  ##        #######  ########   ######
    ##    ##    ## ##     ## ##       ##     ## ##     ## ##    ##
    ##    ##       ##     ## ##       ##     ## ##     ## ##
    ##    ##       ##     ## ##       ##     ## ########   ######
    ##    ##       ##     ## ##       ##     ## ##   ##         ##
    ##    ##    ## ##     ## ##       ##     ## ##    ##  ##    ##
    ##     ######   #######  ########  #######  ##     ##  ######

    describe 'with a buffer with only colors', ->
      beforeEach ->
        waitsForPromise ->
