Sha256: ae725a93b93c51556922dafab9bb03899044b8dfc45813cd3a988074ff0339f3

Contents?: true

Size: 333 Bytes

Versions: 18

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.8.12 test/filters/test_rdoc.rb
nanoc-4.8.11 test/filters/test_rdoc.rb
nanoc-4.8.10 test/filters/test_rdoc.rb
nanoc-4.8.9 test/filters/test_rdoc.rb
nanoc-4.8.8 test/filters/test_rdoc.rb
nanoc-4.8.7 test/filters/test_rdoc.rb
nanoc-4.8.6 test/filters/test_rdoc.rb
nanoc-4.8.5 test/filters/test_rdoc.rb
nanoc-4.8.4 test/filters/test_rdoc.rb
nanoc-4.8.3 test/filters/test_rdoc.rb
nanoc-4.8.2 test/filters/test_rdoc.rb
nanoc-4.8.1 test/filters/test_rdoc.rb
nanoc-4.8.0 test/filters/test_rdoc.rb
nanoc-4.7.14 test/filters/test_rdoc.rb
nanoc-4.7.13 test/filters/test_rdoc.rb
nanoc-4.7.12 test/filters/test_rdoc.rb
nanoc-4.7.11 test/filters/test_rdoc.rb
nanoc-4.7.10 test/filters/test_rdoc.rb