Sha256: 912a7caa08581c18499039dc922c4758bdb0e1642369cc1acbd6b194e9f20d0f

Contents?: true

Size: 302 Bytes

Versions: 22

Compression:

Stored size: 302 Bytes

Contents

require 'helper'

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

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.7.9 test/filters/test_rdoc.rb
nanoc-4.7.8 test/filters/test_rdoc.rb
nanoc-4.7.7 test/filters/test_rdoc.rb
nanoc-4.7.6 test/filters/test_rdoc.rb
nanoc-4.7.5 test/filters/test_rdoc.rb
nanoc-4.7.4 test/filters/test_rdoc.rb
nanoc-4.7.3 test/filters/test_rdoc.rb
nanoc-4.7.2 test/filters/test_rdoc.rb
nanoc-4.7.1 test/filters/test_rdoc.rb
nanoc-4.7.0 test/filters/test_rdoc.rb
nanoc-4.6.4 test/filters/test_rdoc.rb
nanoc-4.6.3 test/filters/test_rdoc.rb
nanoc-4.6.2 test/filters/test_rdoc.rb
nanoc-4.6.1 test/filters/test_rdoc.rb
nanoc-4.6.0 test/filters/test_rdoc.rb
nanoc-4.5.4 test/filters/test_rdoc.rb
nanoc-4.5.3 test/filters/test_rdoc.rb
nanoc-4.5.2 test/filters/test_rdoc.rb
nanoc-4.5.1 test/filters/test_rdoc.rb
nanoc-4.5.0 test/filters/test_rdoc.rb