             editor.moveLeft()
             simulateTabKeyEvent()
 
-            expect(buffer.lineForRow(2)).toBe "go here next:(  ) and finally go here:()"
+            expect(editor.lineTextForBufferRow(2)).toBe "go here next:(  ) and finally go here:()"
             expect(editor.getCursorBufferPosition()).toEqual [2, 16]
 
             # test we can terminate with shift-tab

        editor.setText('')
        editor.insertText('bad1')
        atom.commands.dispatch editorElement, 'snippets:expand'
        expect(buffer.getText()).toBe 'bad1'

        editor.setText('')
        editor.setText('bad2')
        atom.commands.dispatch editorElement, 'snippets:expand'
        expect(buffer.getText()).toBe 'bad2'

    describe "when the letters preceding the cursor trigger a snippet", ->
      describe "when the snippet contains no tab stops", ->

            editor.insertText('t8')
            simulateTabKeyEvent()

            expect(editor.lineTextForBufferRow(0)).toBe "with placeholder test"
            editor.moveRight()
            editor.moveLeft()
            editor.insertText("foo")
            expect(editor.lineTextForBufferRow(0)).toBe "with placeholder tesfoot"

            simulateTabKeyEvent()
            expect(editor.lineTextForBufferRow(1)).toBe "without placeholder var quicksort = function () {"
            editor.insertText("test")
            expect(editor.lineTextForBufferRow(1)).toBe "without placeholder testvar quicksort = function () {"
            editor.moveLeft()
            editor.insertText("foo")
            expect(editor.lineTextForBufferRow(1)).toBe "without placeholder tesfootvar quicksort = function () {"

        describe "when the backspace is press within the bounds of the current tab stop", ->
          it "should not terminate the snippet", ->
