1
0

markdown_helper_spec.rb 278 B

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