         expect(getHistory().entries).toHaveLength 2
 
     describe "when entries exceed max", ->
-      [history, commander, main, workspaceElement, editor, editorElement] = []
-
       data = [ "one", "two", "three" ]
-
       beforeEach ->
         workspaceElement = atom.views.getView(atom.workspace)
         commander = getCommander workspaceElement

        expect(getEntries()).toHaveLength 3

        atom.clipboard.write 'four'
        expect(_.pluck(getEntries(), 'text')).toEqual ["two", "three", "four"]

  describe "paste", ->
    [editorCommander, workspaceCommander, workspaceElement, editor, editorElement] = []

    beforeEach ->
      atom.config.set('clip-history.max', 3)

        activationPromise
        atom.workspace.open(samplePath).then (_editor) ->
          editor          = _editor
          editorCommander = getCommander atom.views.getView(_editor)
      workspaceCommander = getCommander atom.views.getView(atom.workspace)

    moveTo = (point) ->
      editor.setCursorBufferPosition point
