Sha256: 6e998e8400a1a410b39b9636e533432dfec805485bf8c57c33ebab1bec3f8fc2

Contents?: true

Size: 339 Bytes

Versions: 7

Compression:

Stored size: 339 Bytes

Contents

# encoding: utf-8

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

  def test_filter
    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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/filters/test_asciidoc.rb
nanoc-3.7.2 test/filters/test_asciidoc.rb
nanoc-3.7.1 test/filters/test_asciidoc.rb
nanoc-3.7.0 test/filters/test_asciidoc.rb
nanoc-3.6.11 test/filters/test_asciidoc.rb
nanoc-3.6.10 test/filters/test_asciidoc.rb
nanoc-3.6.9 test/filters/test_asciidoc.rb