diff options
author | Go MAEDA <maeda@farend.jp> | 2018-05-02 02:27:10 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-05-02 02:27:10 +0000 |
commit | 00b85dc8d9a5102c494e32739abac0a836ca125a (patch) | |
tree | 3143aab2d96d5e77c683f0c6f72b57dbf1926fda /test/unit/lib | |
parent | b618a04bb29fec53841467bae3a446f528a7afe3 (diff) | |
download | redmine-00b85dc8d9a5102c494e32739abac0a836ca125a.tar.gz redmine-00b85dc8d9a5102c494e32739abac0a836ca125a.zip |
Fix: Syntax highlighter does not work if language name is single-quoted (#28469).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17322 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index 059f0b83a..712bc5000 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -546,7 +546,10 @@ STR end def test_should_allow_valid_language_class_attribute_on_code_tags + # language name is double-quoted assert_html_output({"<code class=\"ruby\">test</code>" => "<code class=\"ruby syntaxhl\"><span class=\"CodeRay\">test</span></code>"}, false) + # language name is single-quoted + assert_html_output({"<code class='ruby'>test</code>" => "<code class=\"ruby syntaxhl\"><span class=\"CodeRay\">test</span></code>"}, false) end def test_should_not_allow_valid_language_class_attribute_on_non_code_offtags |