Sha256: 5f60c1358f511088b6524cc522ea22f895d322a7939b4ee7fd7d80cae130c940
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
### # NB: for local testing run like: # # 1.9.x: ruby -Ilib test/test_redcarpet.rb # core and stlibs require 'helper' class TestRedcarpet < MiniTest::Unit::TestCase def setup puts 'enter setup' lib = Markdown.lib puts ' set lib=redcarpet' Markdown.lib = 'redcarpet' end def test_lib lib = Markdown.lib assert_equal( 'redcarpet', lib ) end def test_to_html_banner_false html = Markdown.new( 'Hello World!', banner: false ).to_html assert_equal( "<p>Hello World!</p>\n", html ) end def test_to_html_banner_true html = Markdown.new( 'Hello World!', banner: true ).to_html assert( html =~ /^<!-- === begin markdown block ===/ ) assert( html.include?( "<p>Hello World!</p>\n" )) assert( html =~ /============ -->$/ ) end end # class TestRedcarpet
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdown-1.1.0 | test/test_redcarpet.rb |