mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
Add support for quoted arguments containing commas in wiki macros (#40014).
Patch by Yasu Saku (user:skys). git-svn-id: https://svn.redmine.org/redmine/trunk@22959 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -279,6 +279,13 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_macro_collapse_with_arg_contains_comma
|
||||
text = %|{{collapse("Click here, to see the example", Hide example)\n*Collapsed* block of text\n}}|
|
||||
result = textilizable(text)
|
||||
assert_select_in result, 'a.collapsible.icon-collapsed', :text => 'Click here, to see the example'
|
||||
assert_select_in result, 'a.collapsible.icon-expanded', :text => 'Hide example'
|
||||
end
|
||||
|
||||
def test_macro_collapse_should_not_break_toc
|
||||
set_language_if_valid 'en'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user