diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 90eaed4f7..2f7c6fdef 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -472,6 +472,10 @@ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), textilizable(raw).gsub(%r{\s+}, '') end + def test_textile_should_not_mangle_brackets + assert_equal '

[msg1][msg2]

', textilizable('[msg1][msg2]') + end + def test_default_formatter Setting.text_formatting = 'unknown' text = 'a *link*: http://www.example.net/'