Sha256: 2ed9664be28d977e61c366c9ca2270e5eab2911554380fe71447b54e5d39f18f

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'test/unit'
require 'webgen/tree'
require 'webgen/contentprocessor'

class TestContentProcessorRDoc < Test::Unit::TestCase

  def test_call
    obj = Webgen::ContentProcessor::RDoc.new
    root = Webgen::Node.new(Webgen::Tree.new.dummy_root, '/', '/')
    node = Webgen::Node.new(root, 'test', 'test')
    context = Webgen::Context.new(:content => "* hello",
                                                    :chain => [node])
    assert_equal("<ul>\n<li>hello\n\n</li>\n</ul>\n", obj.call(context).content)
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.8.20090507 test/test_contentprocessor_rdoc.rb
webgen-0.5.8 test/test_contentprocessor_rdoc.rb