Sha256: 1fbe0a9dd5b5cc3fd4952d05fba972a72955c34440e86528665f3a01e66fc15a

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

# 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{<h2 id="_blah_blah">Blah blah</h2>}, result
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nanoc-3.6.6 test/filters/test_asciidoc.rb
nanoc-3.6.5 test/filters/test_asciidoc.rb
nanoc-3.6.4 test/filters/test_asciidoc.rb
nanoc-3.6.3 test/filters/test_asciidoc.rb
nanoc-3.6.2 test/filters/test_asciidoc.rb