           expect(_.pluck(finderView.list.find('li > div.file'), 'outerText')).toEqual ['sample.js']
 
     describe "when a path selection is confirmed", ->
-      [editor1, editor2] = []
+      [editor1, editor2, editor3] = []
 
       beforeEach ->
         rootView.attachToDom()
         editor1 = rootView.getActiveView()
         editor2 = editor1.splitRight()
-        expect(rootView.getActiveView()).toBe editor2
-        rootView.open('sample.txt')
+        editor3 = rootView.open('sample.txt')
+
+        [editor1, editor2, editor3] = rootView.getEditors()
+
+        expect(rootView.getActiveView()).toBe editor3
+
         editor2.trigger 'pane:show-previous-item'
         rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
 

        expectedPath = project.resolve('dir/a')
        finderView.confirmed({filePath: expectedPath})

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

      describe "when the selected path is a directory", ->
        it "leaves the the tree view open, doesn't open the path in the editor, and displays an error", ->

          expectedPath = project.resolve('sample.txt')
          finderView.confirmed({filePath: expectedPath})

          editor4 = rootView.getActiveView()

          expect(finderView.hasParent()).toBeFalsy()
          expect(editor1.isFocused).toBeFalsy()

          expect(editor4).not.toBe editor1
          expect(editor4).not.toBe editor2
          expect(editor4).not.toBe editor3

          expect(editor4.getPath()).toBe expectedPath
          expect(editor4.isFocused).toBeTruthy()

  describe "git-status-finder behavior", ->
    [originalText, originalPath, newPath] = []
