         spyOn(editor, "splitDown").andCallThrough()
         expect(rootView.find('.editor').length).toBe 1
         rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
-        finder.miniEditor.trigger 'editor:split-down'
+        finderView.miniEditor.trigger 'editor:split-down'
         expect(rootView.find('.editor').length).toBe 2
         expect(editor.splitDown).toHaveBeenCalled()
         expect(rootView.getActiveEditor()).not.toBe editor

      rootView.trigger 'fuzzy-finder:find-under-cursor'

      waitsFor ->
        finder.is(':visible')

      runs ->
        expect(finder.find('.error').text().length).toBeGreaterThan 0

    it "displays error when there is no word under the cursor", ->
      editor.setText("&&&&&&&&&&&&&&& sample")

      describe "when there is an edit session for the confirmed path in the active editor", ->
        it "switches the active editor to the edit session for the selected path", ->
          expectedPath = fixturesProject.resolve('sample.txt')
          finderView.confirmed('sample.txt')

          expect(finderView.hasParent()).toBeFalsy()
          expect(editor1.getPath()).not.toBe expectedPath
          expect(editor2.getPath()).toBe expectedPath
          expect(editor2.isFocused).toBeTruthy()
