Sha256: fb9d42333155c76aa97effe9074a683e77a5899f68f6c06a674514e9cda73861

Contents?: true

Size: 574 Bytes

Versions: 3

Compression:

Stored size: 574 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::ContentProcessor::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

3 entries across 3 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 test/test_contentprocessor_rdoc.rb
thewoolleyman-webgen-0.5.8.20090419 test/test_contentprocessor_rdoc.rb
webgen-0.5.7 test/test_contentprocessor_rdoc.rb