Sha256: 1c751b360b5e0551222f4314264467f8ae731db2b52addb6d0a9a907e6d20c3b
Contents?: true
Size: 576 Bytes
Versions: 9
Compression:
Stored size: 576 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestRedcarpet < Test::Unit::TestCase context "redcarpet" do setup do config = { 'redcarpet' => { 'extensions' => ['smart'] }, 'markdown' => 'redcarpet' } @markdown = MarkdownConverter.new config end should "pass redcarpet options" do assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip end should "pass redcarpet extensions" do assert_equal "<p>“smart”</p>", @markdown.convert('"smart"').strip end end end
Version data entries
9 entries across 9 versions & 4 rubygems