1
0

markdown_helper_spec.rb 261 B

1234567891011121314
  1. require 'spec_helper'
  2. describe MarkdownHelper do
  3. describe '#markdown' do
  4. it 'renders HTML from a markdown text' do
  5. markdown('# Header').should =~ /<h1>Header<\/h1>/
  6. markdown('## Header 2').should =~ /<h2>Header 2<\/h2>/
  7. end
  8. end
  9. end