summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/wiki_formatting
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-16 10:56:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-16 10:56:52 +0000
commit794a2a0180ed2d2801be4146ac59799747683b3d (patch)
treea1ff2422558cab4e349b65b5aa3eee21dba3e942 /test/unit/lib/redmine/wiki_formatting
parentbaab521b8ba0d82fcbf0528d867651813ff34169 (diff)
downloadredmine-794a2a0180ed2d2801be4146ac59799747683b3d.tar.gz
redmine-794a2a0180ed2d2801be4146ac59799747683b3d.zip
Enable and add underline button to the toolbar for Markdown formatting (#28169).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17385 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/wiki_formatting')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
index a2f864c24..54c484567 100644
--- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
@@ -177,5 +177,9 @@ Nulla nunc nisi, egestas in ornare vel, posuere ac libero."]
assert_equal Digest::MD5.hexdigest(expected), result.last, "section hash did not match"
end
+ def test_should_support_underlined_text
+ text = 'This _text_ should be underlined'
+ assert_equal '<p>This <u>text</u> should be underlined</p>', @formatter.new(text).to_html.strip
+ end
end
end