         expect(editor.tokenizedLineForScreenRow(0).tokens.length).toBeGreaterThan 1
 
   describe "auto-indent", ->
-    copyText = (text, {startColumn, textEditor}={}) ->
-      startColumn ?= 0
-      textEditor ?= editor
-      textEditor.setCursorBufferPosition([0, 0])
-      textEditor.insertText(text)
-      numberOfNewlines = text.match(/\n/g)?.length
-      endColumn = text.match(/[^\n]*$/)[0]?.length
-      textEditor.getLastSelection().setBufferRange([[0,startColumn], [numberOfNewlines,endColumn]])
-      textEditor.cutSelectedText()
-
     describe "editor.autoIndent", ->
       describe "when editor.autoIndent is false (default)", ->
         describe "when `indent` is triggered", ->

            ])

      describe ".pasteText()", ->
        it "pastes text into the buffer", ->
          atom.clipboard.write('first')
          editor.pasteText()
          expect(editor.lineTextForBufferRow(0)).toBe "var first = function () {"
          expect(editor.lineTextForBufferRow(1)).toBe "  var first = function(items) {"

        describe "when config.autoIndentOnPaste is true", ->
          beforeEach ->
            atom.config.set("editor.autoIndentOnPaste", true)


          coffeeEditor.setCursorBufferPosition([1, 18])
          coffeeEditor.insertText("\n")
          expect(coffeeEditor.lineTextForBufferRow(2)).toBe ""

    it "autoIndentSelectedRows auto-indents the selection", ->
      editor.setCursorBufferPosition([2, 0])
