Sha256: dfaa1e213640714a6dd8c06a8cb27de36092c1d206a73d80405b6df351cc0971
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::PandocTest < Nanoc::TestCase def test_filter if_have 'pandoc-ruby' do if `which pandoc`.strip.empty? skip "could not find pandoc" end # 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.6 | test/filters/test_pandoc.rb |
nanoc-3.6.5 | test/filters/test_pandoc.rb |
nanoc-3.6.4 | test/filters/test_pandoc.rb |
nanoc-3.6.3 | test/filters/test_pandoc.rb |