test/test_htmlutils.rb in review-4.2.0 vs test/test_htmlutils.rb in review-5.0.0
- old
+ new
@@ -15,21 +15,9 @@
assert_equal '>', unescape('>')
assert_equal '&', unescape('&')
assert_equal '&', unescape('&')
end
- def test_escape_html_ex
- keys = ESC.keys
- ESC['.'] = 'X'
- ESC.each_pair do |ch, ref|
- if keys.include?(ch)
- assert_equal ref, escape(ch)
- else
- assert_equal ch, escape(ch)
- end
- end
- end
-
def test_strip_html
assert_equal 'thisistest.', strip_html('<h3>this<b>is</b>test</h3>.')
end
def test_escape_comment