 
               runs ->
                 expect(fs.existsSync(filePath)).toBeTruthy()
+                expect(atom.workspace.getActiveEditor().getPath()).toBe(newPath)
 
           describe "when a file or directory already exists at the target path", ->
             it "shows an error message and does not close the dialog", ->

fs = require 'fs-plus'
TreeView = require '../lib/tree-view'
path = require 'path'
temp = require 'temp'
wrench = require 'wrench'
os = require 'os'


      sampleTxt = treeView.find('.file:contains(tree-view.txt)')

      expect(treeView.root.directory.getSubscriptionCount()).toBeGreaterThan 0

  afterEach ->
    temp.cleanup()

  describe ".initialize(project)", ->
    it "renders the root of the project and its contents alphabetically with subdirectories first in a collapsed state", ->
