 
     describe "when dragging a FileView onto a DirectoryView's header", ->
       it "should add the selected class to the DirectoryView", ->
-        # Dragging theta onto alphaDir
+        # Dragging delta.txt onto alphaDir
         alphaDir = findDirectoryContainingText(treeView.roots[0], 'alpha')
         alphaDir.expand()
 
         gammaDir = findDirectoryContainingText(treeView.roots[0], 'gamma')
         gammaDir.expand()
-        deltaFile = gammaDir.entries.children[2]
+        deltaFile = gammaDir.entries.children[1]
 
         [dragStartEvent, dragEnterEvent, dropEvent] =
             eventHelpers.buildInternalDragEvents(deltaFile, alphaDir.querySelector('.header'))

        thetaDir = gammaDir.entries.children[0]
        thetaDir.expand()

        waitForWorkspaceOpenEvent ->
          atom.workspace.open(thetaFilePath)

        runs ->
          [dragStartEvent, dragEnterEvent, dropEvent] =
            eventHelpers.buildInternalDragEvents(thetaDir, alphaDir.querySelector('.header'), alphaDir)
          treeView.onDragStart(dragStartEvent)
          treeView.onDrop(dropEvent)
          expect(alphaDir.children.length).toBe 2

        waitsFor "directory view contents to refresh", ->
          findDirectoryContainingText(treeView.roots[0], 'alpha').querySelectorAll('.entry').length > 2

            atom.commands.dispatch moveDialog.element, 'core:confirm'
            expect(atom.workspace.getActivePaneItem()).toBe(editor)
            expect(editor.getPath()).toBe(filePath.replace('test-dir', 'renamed-dir'))

          it 'does not update paths for editors with similar paths', ->
            waitForWorkspaceOpenEvent ->
              atom.workspace.open(filePath2)

            runs ->
              newPath = path.join(rootDirPath, 'renamed-dir')
              moveDialog.miniEditor.setText(newPath)

              atom.commands.dispatch moveDialog.element, 'core:confirm'

              editors = atom.workspace.getTextEditors()
              expect(editors[0].getPath()).toBe filePath.replace('test-dir', 'renamed-dir')
              expect(editors[1].getPath()).toBe filePath2

      describe "when the project is selected", ->
        it "doesn't display the move dialog", ->
