 
     describe "when the editor has a height and lineHeightInPixels", ->
       beforeEach ->
-        atom.config.set('editor.scrollPastEnd', true)
+        editor.setScrollPastEnd(true)
         editor.setHeight(100, true)
         editor.setLineHeightInPixels(10)
 


        describe "when invisible characters are enabled with soft tabs", ->
          it "moves to the first character of the current line without being confused by the invisible characters", ->
            atom.config.set('editor.showInvisibles', true)
            editor.setCursorScreenPosition [1, 7]
            editor.moveToFirstCharacterOfLine()
            expect(editor.getCursorBufferPosition()).toEqual [1, 2]


        describe "when invisible characters are enabled with hard tabs", ->
          it "moves to the first character of the current line without being confused by the invisible characters", ->
            editor.setShowInvisibles(true)
            buffer.setTextInRange([[1, 0], [1, Infinity]], '\t\t\ta', normalizeLineEndings: false)

            editor.setCursorScreenPosition [1, 7]
