           atom.workspaceView.getActiveView().trigger 'markdown-preview:show'
 
         waitsFor ->
-          MarkdownPreviewView.prototype.renderMarkdown.callCount > 0
+          MarkdownPreviewView::renderMarkdown.callCount > 0
 
         runs ->
           expect(atom.workspaceView.getPanes()).toHaveLength 2

          atom.packages.activatePackage('language-javascript')

        waitsFor ->
          MarkdownPreviewView.prototype.renderMarkdown.callCount > 0

  describe "when the markdown preview view is requested by file URI", ->
    it "opens a preview editor and watches the file for changes", ->

            atom.workspace.getActiveEditor().setText("Hey!")

          waitsFor ->
            MarkdownPreviewView::renderMarkdown.callCount > 0

          runs ->
            expect(previewPane).toHaveFocus()
