Skip to content

Instantly share code, notes, and snippets.

@walter
Created May 4, 2013 00:08
Show Gist options
  • Select an option

  • Save walter/5515275 to your computer and use it in GitHub Desktop.

Select an option

Save walter/5515275 to your computer and use it in GitHub Desktop.
App = require 'app'
require 'helpers/markdown'
module 'Markdown Helper',
setup: ->
Ember.run App, App.advanceReadiness
teardown: ->
App.reset()
test '#markdown', ->
expect 1
markdownText = '# Big Headline'
html = '<h1>Big Headline</h1>'
equal Ember.Handlebars.compile "{{markdown markdownText}}",
html,
'should create equivalent HTML from markdown text'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment