     [originalText, originalPath, editor, newPath] = []
 
     beforeEach ->
+      rootView.attachToDom()
       editor = rootView.getActiveView()
       originalText = editor.getText()
       originalPath = editor.getPath()

          expect(_.pluck(finderView.list.find('li > div.file'), 'outerText')).toEqual ['sample.js']

    describe "when a path selection is confirmed", ->
      [editor1, editor2] = []

      beforeEach ->
        rootView.attachToDom()
        editor1 = rootView.getActiveView()
        editor2 = editor1.splitRight()
        expect(rootView.getActiveView()).toBe editor2
        rootView.open('sample.txt')
        editor2.trigger 'pane:show-previous-item'
        rootView.trigger 'fuzzy-finder:toggle-buffer-finder'


        expect(finderView.find('.status.status-modified').length).toBe 1
        expect(finderView.find('.status.status-modified').closest('li').find('.file').text()).toBe 'sample.js'

    describe "when a new file is shown in the list", ->
      it "displays the new icon", ->
        rootView.open('newsample.js')
        editor = rootView.getActiveView()
        project.getRepo().getPathStatus(editor.getPath())

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