       describe "when the active pane has an item for the selected path", ->
         it "switches to the item for the selected path", ->
           expectedPath = project.resolve('sample.txt')
-          finderView.confirmed('sample.txt')
+          finderView.confirmed(expectedPath)
 
           expect(finderView.hasParent()).toBeFalsy()
           expect(editor1.getPath()).not.toBe expectedPath

          expect(rootView.getActiveView()).toBe editor1

          expectedPath = project.resolve('sample.txt')
          finderView.confirmed('sample.txt')

          expect(finderView.hasParent()).toBeFalsy()
          expect(editor1.getPath()).toBe expectedPath

        expect(rootView.getActiveView()).toBe editor2
        rootView.trigger 'fuzzy-finder:toggle-file-finder'

        expectedPath = project.resolve('dir/a')
        finderView.confirmed(expectedPath)

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