test/test_contentprocessor_rdoc.rb in webgen-0.5.8 vs test/test_contentprocessor_rdoc.rb in webgen-0.5.9
- old
+ new
@@ -1,8 +1,9 @@
# -*- encoding: utf-8 -*-
require 'test/unit'
+require 'helper'
require 'webgen/tree'
require 'webgen/contentprocessor'
class TestContentProcessorRDoc < Test::Unit::TestCase
@@ -11,8 +12,11 @@
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)
+
+ def obj.require(lib); raise LoadError; end
+ assert_raise(Webgen::LoadError) { obj.call(context) }
end
end