Sha256: 676a6f116c274f49a822ebc40c9761d990e03db75bfa577a5aa15554d42a79a9
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
# encoding: utf-8 class Nanoc::Filters::PandocTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers 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_equal("<h1 id=\"heading\">Heading</h1>", result) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.1 | test/filters/test_pandoc.rb |
nanoc-3.6.0 | test/filters/test_pandoc.rb |