               expect(editSession.indentationForBufferRow(6)).toBe editSession.indentationForBufferRow(5)
 
           it "does not indent the line preceding the newline", ->
-            config.set("editor.autoIndent", true)
             editSession.setCursorBufferPosition([2, 0])
             editSession.insertText('  var this-line-should-be-indented-more\n')
             expect(editSession.indentationForBufferRow(1)).toBe 1

      expect(editSession.lineForBufferRow(3)).toBe "      inside=true"
      expect(editSession.lineForBufferRow(4)).toBe "    }"
      expect(editSession.lineForBufferRow(5)).toBe "    i=1"

  describe ".autoDecreaseIndentForRow()", ->
      it "doesn't outdent the first and only row", ->
        editSession.selectAll()
        editSession.insertText("  }")
        editSession.autoDecreaseIndentForBufferRow(0)
        expect(editSession.lineForBufferRow(0)).toBe "  }"

      it "doesn't outdent a row that is already fully outdented", ->
        editSession.selectAll()
        editSession.insertText("var i;\n}")
        editSession.autoDecreaseIndentForBufferRow(1)
        expect(editSession.lineForBufferRow(1)).toBe "}"

  describe ".destroy()", ->
    it "destroys all markers associated with the edit session", ->


      describe "when inserted text matches a decrease indent pattern", ->
        describe "when the preceding line matches an increase indent pattern", ->
          it "decreases the indentation to match that of the preceding line", ->
            editSession.setCursorBufferPosition([1, Infinity])
            editSession.insertText('\n    ')
            expect(editSession.indentationForBufferRow(2)).toBe editSession.indentationForBufferRow(1) + 1
