test/test_contentprocessor_haml.rb in webgen-0.5.10 vs test/test_contentprocessor_haml.rb in webgen-0.5.11
- old
+ new
@@ -17,14 +17,14 @@
context = Webgen::Context.new(:content => content,
:chain => [node])
obj.call(context)
assert_equal("<div id='content'>\n <h1>Hallo</h1>\n /test/test/test/test\n</div>\n", context.content)
- context.content = "#cont\n %unknown"
+ context.content = "#cont\n % = + unknown"
assert_error_on_line(Webgen::RenderError, 2) { obj.call(context) }
context.content = "#cont\n = unknown"
- assert_raise(Webgen::RenderError) { obj.call(context) }
+ assert_error_on_line(Webgen::RenderError, 2) { obj.call(context) }
def obj.require(lib); raise LoadError; end
assert_raise(Webgen::LoadError) { obj.call(context) }
end