         """
 
         editorView.trigger 'find-and-replace:select-next'
-        expect(editor.getSelectedBufferRanges()).toEqual [
-          [[0, 0], [0, 1]]
-        ]
-
-        editorView.trigger 'find-and-replace:select-next'
-        expect(editor.getSelectedBufferRanges()).toEqual [
+        expect(getSelectedBufferRanges()).toEqual [
+          [[0, 0], [0, 1]]
+        ]
+
+        editorView.trigger 'find-and-replace:select-next'
+        expect(getSelectedBufferRanges()).toEqual [
           [[0, 0], [0, 1]]
           [[2, 0], [2, 1]]
         ]
 
         editorView.trigger 'find-and-replace:select-next'
-        expect(editor.getSelectedBufferRanges()).toEqual [
+        expect(getSelectedBufferRanges()).toEqual [
           [[0, 0], [0, 1]]
           [[2, 0], [2, 1]]
         ]

        """
        editor.setSelectedBufferRange([[0, 0], [0, 1]])
        editorView.trigger 'find-and-replace:select-all'
        expect(editor.getSelectedBufferRanges()).toEqual [
          [[0, 0], [0, 1]]
          [[1, 0], [1, 1]]
        ]

        """
        editor.setSelectedBufferRange([[0, 0], [0, 1]])
        editorView.trigger 'find-and-replace:select-next'
        expect(getSelectedBufferRanges()).toEqual [
          [[0, 0], [0, 1]]
          [[1, 0], [1, 1]]
        ]
