           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 path contains accented characters", ->

        MarkdownPreviewView::renderMarkdown.callCount > 0

      runs ->
        [editorPane, previewPane] = atom.workspaceView.getPanes()
        preview = previewPane.getActiveItem()
        expect(preview.getTitle()).toBe 'file.markdown Preview'


          MarkdownPreviewView::renderMarkdown.callCount > 0

        runs ->
          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.workspace.getActivePaneItem().getPath()
          expect(editorPane).toHaveFocus()

    describe "when the path contains a space", ->
