       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')
-          finder.confirmed('sample.txt')
-
-          expect(finder.hasParent()).toBeFalsy()
+          finderView.confirmed('sample.txt')
+
+          expect(finderView.hasParent()).toBeFalsy()
           expect(editor1.getPath()).not.toBe expectedPath
           expect(editor2.getPath()).toBe expectedPath
           expect(editor2.isFocused).toBeTruthy()

          expect(rootView.find('.fuzzy-finder')).not.toExist()

          rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
          expect(finder.miniEditor.getText()).toBe ''

        it "lists the paths of the current open buffers", ->
          rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
          expect(finder.list.children('li').length).toBe 2
          expect(finder.list.find("li:contains(sample.js)")).toExist()
          expect(finder.list.find("li:contains(sample.txt)")).toExist()
          expect(finder.list.children().first()).toHaveClass 'selected'

      describe "when the active editor only contains edit sessions for anonymous buffers", ->
        it "does not open", ->

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

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

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