test/devcenter-parser_test.rb in devcenter-parser-1.4.5 vs test/devcenter-parser_test.rb in devcenter-parser-1.4.6
- old
+ new
@@ -24,9 +24,16 @@
it 'returns empty string for nil input' do
assert_maruku_result nil, ''
assert_github_result nil, ''
end
+ it 'does not create <em>s inside words' do
+ md = 'foo_bar_baz'
+ html = '<p>foo_bar_baz</p>'
+ assert_maruku_result md, html
+ assert_github_result md, html
+ end
+
it 'raises InvalidMarkdownError when parsing invalid markdown' do
md = '[foo](bar'
assert_raises DevcenterParser::InvalidMarkdownError do
DevcenterParser.to_html(md, :maruku)
end