Sha256: e6cba548192bc12e7dfb50b2c1f0a86f4927a02c9de57f76a5461ce4c750a03b
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
# 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.setup_and_run("== Blah blah") assert_match %r{<h2 id="_blah_blah">Blah blah</h2>}, result end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.1 | test/filters/test_asciidoc.rb |
nanoc-3.6.0 | test/filters/test_asciidoc.rb |