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

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

      waitsFor ->
        finder.list.children('li').length > 0

      runs ->
        expect(finder).toBeVisible()
        expect(rootView.find('.fuzzy-finder input:focus')).toExist()

    it "opens a file directly when there is a single match", ->

        rootView.trigger 'fuzzy-finder:toggle-buffer-finder'

      waitsFor ->
        finderView.list.children('li').length > 0

      runs ->
        expect(rootView.getOpenBufferPaths).toHaveBeenCalled()
