diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-04-26 07:02:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-04-26 07:02:45 +0000 |
commit | d197203d79830f729d6dee41ff8fbc8625371dee (patch) | |
tree | 62eae8bb5c280e94848cd3b17a5da114d17dc8cb /test/unit/lib | |
parent | 43c9d69bf251a033b2c6d6562e56e91a1442d3da (diff) | |
download | redmine-d197203d79830f729d6dee41ff8fbc8625371dee.tar.gz redmine-d197203d79830f729d6dee41ff8fbc8625371dee.zip |
Set Redcarpet :no_intra_emphasis to true (#16669).
git-svn-id: http://svn.redmine.org/redmine/trunk@13105 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb index 458bc43bd..98a55eb5f 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb @@ -28,6 +28,10 @@ class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase assert_equal "<p><strong>foo</strong></p>", @formatter.new("**foo**").to_html.strip end + def test_not_set_intra_emphasis + assert_equal "<p>foo_bar_baz</p>", @formatter.new("foo_bar_baz").to_html.strip + end + def test_wiki_links_should_be_preserved text = 'This is a wiki link: [[Foo]]' assert_include '[[Foo]]', @formatter.new(text).to_html |