     atom.workspace = new Workspace
     atom.workspaceView = new WorkspaceView(atom.workspace)
     atom.workspaceView.enableKeymap()
-    atom.workspaceView.openSync(pathToOpen)
     atom.workspaceView.focus()
+
+    waitsForPromise ->
+      atom.workspace.open(pathToOpen)
+
 
   describe "@deserialize()", ->
     viewState = null

    it "hands off focus to the active pane", ->
      activePane = atom.workspaceView.getActivePaneView()
      $('body').focus()
      expect(activePane.hasFocus()).toBe false
      atom.workspaceView.focus()
      expect(activePane.hasFocus()).toBe true

  describe "keymap wiring", ->
    commandHandler = null

      commandHandler = jasmine.createSpy('commandHandler')
      atom.workspaceView.on('foo-command', commandHandler)

      atom.keymaps.add('name', '*': {'x': 'foo-command'})

    describe "when a keydown event is triggered in the WorkspaceView", ->
      it "triggers matching keybindings for that event", ->
