Sha256: 2fb11341fe6e67daa0f7321fcee35f4efd2115eaddd0060cbaed8dc5409cb09c

Contents?: true

Size: 459 Bytes

Versions: 15

Compression:

Stored size: 459 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.run("== Blah blah")
      assert_match %r{<h2 id="_blah_blah">Blah blah</h2>}, result
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 test/filters/test_asciidoc.rb
nanoc-3.5.0b2 test/filters/test_asciidoc.rb
nanoc-3.5.0b1 test/filters/test_asciidoc.rb
nanoc-3.4.3 test/filters/test_asciidoc.rb
nanoc-3.4.2 test/filters/test_asciidoc.rb
nanoc-3.4.1 test/filters/test_asciidoc.rb
nanoc-3.4.0 test/filters/test_asciidoc.rb
nanoc-3.3.7 test/filters/test_asciidoc.rb
nanoc-3.3.6 test/filters/test_asciidoc.rb
nanoc-3.3.5 test/filters/test_asciidoc.rb
nanoc-3.3.4 test/filters/test_asciidoc.rb
nanoc-3.3.3 test/filters/test_asciidoc.rb
nanoc-3.3.2 test/filters/test_asciidoc.rb
nanoc-3.3.1 test/filters/test_asciidoc.rb
nanoc-3.3.0 test/filters/test_asciidoc.rb