Sha256: d54b5e6a32e69149cd12f8d785c11696d9df6ea6f289e37a2f266b8cd1a025be

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::AsciiDocTest < Nanoc::TestCase

  def test_filter
    if_have 'systemu' do
      skip_unless_have_command "asciidoc"

      # 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.8 test/filters/test_asciidoc.rb
nanoc-3.6.7 test/filters/test_asciidoc.rb