Sha256: e045f14976dc1e4fca13f729b68d91fdffa34310cdafab9d22ab55bb0ab569ad
Contents?: true
Size: 688 Bytes
Versions: 3
Compression:
Stored size: 688 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' require 'helper' 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><p>\nhello\n</p>\n</li>\n</ul>\n", obj.call(context).content) def obj.require(lib); raise LoadError; end assert_raise(Webgen::LoadError) { obj.call(context) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webgen-0.5.17 | test/test_contentprocessor_rdoc.rb |
webgen-0.5.15 | test/test_contentprocessor_rdoc.rb |
webgen-0.5.14 | test/test_contentprocessor_rdoc.rb |