Sha256: 1f608e010494ad4eabb951ea447dfdd8790f972b2b60e0dc50d5c18d56528e20

Contents?: true

Size: 333 Bytes

Versions: 3

Compression:

Stored size: 333 Bytes

Contents

# encoding: utf-8

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

  include Nanoc3::TestHelpers

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

      # Run filter
      result = filter.run("= Foo")
      assert_match(%r{<h1>Foo</h1>\Z}, result)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc3-3.2.3 test/filters/test_rdoc.rb
nanoc3-3.2.2 test/filters/test_rdoc.rb
nanoc3-3.2.1 test/filters/test_rdoc.rb