Sha256: adc8cb35d1c25018510291202fe537c1229b55a22efe5cb45ba8d6ec79f39b3c

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8

require 'helper'

class Nanoc::Asciidoctor::FilterTest < Minitest::Test

  def test_filter
    # Create filter
    filter = ::Nanoc::Asciidoctor::Filter.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

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-asciidoctor-1.0.2 test/filters/test_asciidoctor.rb
nanoc-asciidoctor-1.0.1 test/filters/test_asciidoctor.rb
nanoc-asciidoctor-1.0.0 test/filters/test_asciidoctor.rb