test/test_builder.rb in review-5.2.0 vs test/test_builder.rb in review-5.3.0
- old
+ new
@@ -92,27 +92,29 @@
assert_equal 'unknown image: unknown|img1', e.message
e = assert_raises(ReVIEW::ApplicationError) { b.inline_column('unknown|column1') }
assert_equal 'unknown column: unknown|column1', e.message
e = assert_raises(ReVIEW::ApplicationError) { b.inline_fn('unknown|footnote1') }
assert_equal 'unknown footnote: unknown|footnote1', e.message
+ e = assert_raises(ReVIEW::ApplicationError) { b.inline_endnote('endnote1') }
+ assert_equal 'unknown endnote: endnote1', e.message
end
def test_nest_error
b = XBuilder.new
b.children = nil
assert_equal '', b.solve_nest('')
b.children = ['dl']
e = assert_raises(ReVIEW::ApplicationError) { b.solve_nest('') }
- assert_equal '//beginchild of dl misses //endchild', e.message
+ assert_equal ': //beginchild of dl misses //endchild', e.message
b.children = ['ul', 'dl', 'ol']
e = assert_raises(ReVIEW::ApplicationError) { b.solve_nest('') }
- assert_equal '//beginchild of ol,dl,ul misses //endchild', e.message
+ assert_equal ': //beginchild of ol,dl,ul misses //endchild', e.message
assert_equal "\u0001→/ol←\u0001", b.endchild
assert_equal "\u0001→/dl←\u0001", b.endchild
assert_equal "\u0001→/ul←\u0001", b.endchild
e = assert_raises(ReVIEW::ApplicationError) { b.endchild }
- assert_equal "//endchild is shown, but any opened //beginchild doesn't exist", e.message
+ assert_equal ": //endchild is shown, but any opened //beginchild doesn't exist", e.message
end
class XBuilder < Builder
attr_accessor :children