         MarkdownPreviewView::renderMarkdown.callCount > 0
 
       runs ->
-        expect(atom.workspaceView.getPanes()).toHaveLength 2
-        [editorPane, previewPane] = atom.workspaceView.getPanes()
+        expect(atom.workspaceView.getPaneViews()).toHaveLength 2
+        [editorPane, previewPane] = atom.workspaceView.getPaneViews()
 
         expect(editorPane.items).toHaveLength 1
         preview = previewPane.getActiveItem()
         expect(preview).toBeInstanceOf(MarkdownPreviewView)
-        expect(preview.getPath()).toBe atom.workspaceView.getActivePaneItem().getPath()
+        expect(preview.getPath()).toBe atom.workspace.getActivePaneItem().getPath()
         expect(editorPane).toHaveFocus()
 
     describe "when the editor's path does not exist", ->

        MarkdownPreviewView::renderMarkdown.callCount > 0

      runs ->
        [editorPane, previewPane] = atom.workspaceView.getPanes()
        preview = previewPane.getActiveItem()
        expect(preview[0].innerHTML).toBe "content"

        MarkdownPreviewView::renderMarkdown.callCount > 0

      runs ->
        [editorPane, previewPane] = atom.workspaceView.getPaneViews()
        preview = previewPane.getActiveItem()
        expect(preview[0].innerHTML).toBe """
          <p>hello</p>
