     describe ".moveCursorToBeginningOfLine()", ->
       describe "when soft wrap is on", ->
         it "moves cursor to the beginning of the screen line", ->
+          editSession.setSoftWrap(true)
           editSession.setSoftWrapColumn(10)
           editSession.setCursorScreenPosition([1, 2])
           editSession.moveCursorToBeginningOfLine()


    describe "when soft wrap is enabled", ->
      it "deletes the entire line that the cursor is on", ->
        editSession.setSoftWrapColumn(10)
        editSession.setCursorBufferPosition([6])



      describe "when soft-wrap is enabled and code is folded", ->
        beforeEach ->
          editSession.setSoftWrap(true)
          editSession.setSoftWrapColumn(50)
          editSession.createFold(2, 3)

