Sha256: fcea8482050d833c6a8b2f759e5ce309082de7f715feecc1cedf81ad8a5414c3

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::RDocTest < MiniTest::Unit::TestCase

  include Nanoc::TestHelpers

  def test_filter
    if_have 'rdoc' do
      # Get filter
      filter = ::Nanoc::Filters::RDoc.new

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-3.6.1 test/filters/test_rdoc.rb
nanoc-3.6.0 test/filters/test_rdoc.rb