         expect(rootView.getActiveView()).toBe editor2
         rootView.trigger 'fuzzy-finder:toggle-file-finder'
 
-        finderView.confirmed('dir/a')
         expectedPath = project.resolve('dir/a')
+        finderView.confirmed(expectedPath)
 
         expect(finderView.hasParent()).toBeFalsy()
         expect(editor1.getPath()).not.toBe expectedPath

      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')

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


      runs ->
        expect(finderView).not.toBeVisible()
        expect(openedPath).toBe project.resolve("sample.txt")

    it "displays an error when the word under the cursor doesn't match any files", ->
      editor.setText("moogoogaipan")
