Sha256: 36d4c4f79358ea2b91ada3457f8f5b9f25cb0137ac597c18f4493651007ef9c5

Contents?: true

Size: 348 Bytes

Versions: 15

Compression:

Stored size: 348 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.run("= Foo")
      assert_match(%r{<h1( id="label-Foo")?>Foo</h1>\Z}, result)
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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