# encoding: utf-8 class Nanoc::Filters::AsciiDocTest < Nanoc::TestCase def test_filter if_have 'systemu' do if `which asciidoc`.strip.empty? skip "could not find asciidoc" end # Create filter filter = ::Nanoc::Filters::AsciiDoc.new # Run filter result = filter.setup_and_run("== Blah blah") assert_match %r{

Blah blah

}, result end end end