Sha256: 50e7a29ad7e11b5040f8e732529c9b51206cb355cec7893357071df9ffc97f5f

Contents?: true

Size: 305 Bytes

Versions: 14

Compression:

Stored size: 305 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::RDocTest < Nanoc::TestCase

  def test_filter
    # Get filter
    filter = ::Nanoc::Filters::RDoc.new

    # Run filter
    result = filter.setup_and_run("= Foo")
    assert_match(%r{\A\s*<h1( id="label-Foo")?>Foo(<span>.*</span>)?</h1>\s*\Z}, result)
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/filters/test_rdoc.rb
nanoc-3.7.2 test/filters/test_rdoc.rb
nanoc-3.7.1 test/filters/test_rdoc.rb
nanoc-3.7.0 test/filters/test_rdoc.rb
nanoc-3.6.11 test/filters/test_rdoc.rb
nanoc-3.6.10 test/filters/test_rdoc.rb
nanoc-3.6.9 test/filters/test_rdoc.rb
nanoc-3.6.8 test/filters/test_rdoc.rb
nanoc-3.6.7 test/filters/test_rdoc.rb
nanoc-3.6.6 test/filters/test_rdoc.rb
nanoc-3.6.5 test/filters/test_rdoc.rb
nanoc-3.6.4 test/filters/test_rdoc.rb
nanoc-3.6.3 test/filters/test_rdoc.rb
nanoc-3.6.2 test/filters/test_rdoc.rb