# encoding: utf-8 class Nanoc::Filters::AsciiDocTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers 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.run("== Blah blah") assert_match %r{

Blah blah

}, result end end end