Sha256: 2b3cd619f59809a939b34f09672ee53e67cc1c87a7533c80c6111e0b762866ff
Contents?: true
Size: 732 Bytes
Versions: 6
Compression:
Stored size: 732 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::KramdownTest < Nanoc::TestCase def test_filter if_have 'kramdown' do # Create filter filter = ::Nanoc::Filters::Kramdown.new # Run filter result = filter.setup_and_run('This is _so_ **cool**!') assert_equal("<p>This is <em>so</em> <strong>cool</strong>!</p>\n", result) end end def test_warnings if_have 'kramdown' do # Create filter filter = ::Nanoc::Filters::Kramdown.new # Run filter io = capturing_stdio do filter.setup_and_run('{:foo}this is bogus') end assert_empty io[:stdout] assert_equal "kramdown warning: Found span IAL after text - ignoring it\n", io[:stderr] end end end
Version data entries
6 entries across 6 versions & 1 rubygems