 
         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", ->
-            atom.config.set('editor.showInvisibles', true)
+            editor.setShowInvisibles(true)
             buffer.setTextInRange([[1, 0], [1, Infinity]], '\t\t\ta', normalizeLineEndings: false)
 
             editor.setCursorScreenPosition [1, 7]


      describe "when the 'editor.scrollPastEnd' option is set to false", ->
        it "ensures that the bottom row is less than the buffer's line count", ->
          atom.config.set('editor.scrollPastEnd', false)

          editor.setFirstVisibleScreenRow(95)
          expect(editor.getFirstVisibleScreenRow()).toEqual 89
          expect(editor.getVisibleRowRange()).toEqual [89, 99]


    describe "when the editor has a height and lineHeightInPixels", ->
      beforeEach ->
        editor.setScrollPastEnd(true)
        editor.setHeight(100, true)
        editor.setLineHeightInPixels(10)

