test/devcenter-parser_test.rb in devcenter-parser-1.4.7 vs test/devcenter-parser_test.rb in devcenter-parser-1.4.8
- old
+ new
@@ -15,9 +15,15 @@
md = '<script>alert("hi")</script>'
assert_parsing_unsanitized_result md, :maruku, '<script><![CDATA[alert("hi")]]></script>'
assert_parsing_unsanitized_result md, :github, '<script>alert("hi")</script>'
end
+ it 'maintains toolbelt custom element' do
+ md = '<toolbelt />'
+ assert_parsing_unsanitized_result md, :maruku, '<toolbelt></toolbelt>'
+ assert_parsing_unsanitized_result md, :github, '<p><toolbelt></toolbelt></p>'
+ end
+
end
describe '.to_html' do
it 'returns empty string for nil input' do