19 lines
413 B
Ruby
19 lines
413 B
Ruby
require 'helper'
|
|
|
|
class TestRdiscount < Test::Unit::TestCase
|
|
|
|
context "rdiscount" do
|
|
setup do
|
|
config = {
|
|
'rdiscount' => { 'extensions' => ['smart'] },
|
|
'markdown' => 'rdiscount'
|
|
}
|
|
@markdown = MarkdownConverter.new config
|
|
end
|
|
|
|
should "pass rdiscount extensions" do
|
|
assert_equal "<p>“smart”</p>", @markdown.convert('"smart"').strip
|
|
end
|
|
end
|
|
end
|