```coffeescript
MarkdownPreviewView = require 'markdown-preview/lib/markdown-preview-view'
$ = require 'jquery'
{$$$} = require 'space-pen'

describe "MarkdownPreviewView", ->
  [buffer, preview] = []

  beforeEach ->
    project.setPath(project.resolve('markdown'))
    buffer = project.bufferForPath('file.markdown')
    preview = new MarkdownPreviewView(buffer)

  afterEach ->
    buffer.release()

  describe "on construction", ->

    it "shows a loading spinner and fetches the rendered markdown", ->
      preview.setLoading()
      expect(preview.find('.markdown-spinner')).toExist()
      expect(preview.buffer.getText()).toBe buffer.getText()

      preview.fetchRenderedMarkdown()
      expect(preview.find(".emoji")).toExist()

    it "shows an error message on error", ->
      preview.setErrorHtml("Not a real file")
      expect(preview.text()).toContain "Failed"

  describe "serialization", ->
    it "reassociates with the same buffer when deserialized", ->
      newPreview = deserialize(preview.serialize())
      expect(newPreview.buffer).toBe buffer
```

Transform specs to something useful
user
```coffeescript
MarkdownPreviewView = require 'markdown-preview/lib/markdown-preview-view'
$ = require 'jquery'
{$$$} = require 'space-pen'

describe "MarkdownPreviewView", ->
  [buffer, preview] = []

  beforeEach ->
    project.setPath(project.resolve('markdown'))
    buffer = project.bufferForPath('file.markdown')
    preview = new MarkdownPreviewView(buffer)

  afterEach ->
    buffer.release()

  describe "on construction", ->

    it "shows a loading spinner and fetches the rendered markdown", ->
      preview.setLoading()
      expect(preview.find('.markdown-spinner')).toExist()
      expect(preview.buffer.getText()).toBe buffer.getText()

      preview.fetchRenderedMarkdown()
      expect(preview.find(".emoji")).toExist()

    it "shows an error message on error", ->
      preview.setErrorHtml("Not a real file")
      expect(preview.text()).toContain "Failed"

  describe "serialization", ->
    it "reassociates with the same buffer when deserialized", ->
      newPreview = deserialize(preview.serialize())
      expect(newPreview.buffer).toBe buffer

  fdescribe "code block tokenization", ->
    describe "when the code block's fence name has a matching grammar", ->
      it "tokenizes the code block with the grammar", ->
        expect(preview.find("pre code.lang-ruby .entity.name.function.ruby")).toExist()

    describe "when the code block's fence name doesn't have a matching grammar", ->
      it "does not tokenize the code block", ->
        expect(preview.find("pre code:not([class])").children().length).toBe 0
        expect(preview.find("pre code.lang-kombucha").children().length).toBe 0
```
assistant