Sha256: e9b8784372db45fab3e8b607689252817f2cd7a741abe92b9b5c1e0143a1cff7
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::PandocTest < Nanoc::TestCase def test_filter if_have 'pandoc-ruby' do skip_unless_have_command "pandoc" # Create filter filter = ::Nanoc::Filters::Pandoc.new # Run filter result = filter.setup_and_run("# Heading\n") assert_match(%r{<h1 id=\"heading\">Heading</h1>\s*}, result) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.9 | test/filters/test_pandoc.rb |
nanoc-3.6.8 | test/filters/test_pandoc.rb |
nanoc-3.6.7 | test/filters/test_pandoc.rb |