summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-09 10:31:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-09 10:31:17 +0000
commit3918374d5cf791fd3ae13d8ef888f327000d0aa5 (patch)
treead7a71bb5e6e4514ca1953b8f7d99121ee8f344f /test
parent96fe47ea198425c013745626970663f4a47b6038 (diff)
downloadredmine-3918374d5cf791fd3ae13d8ef888f327000d0aa5.tar.gz
redmine-3918374d5cf791fd3ae13d8ef888f327000d0aa5.zip
Add test for #4354.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3142 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/helpers/application_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
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 '<p>[msg1][msg2]</p>', textilizable('[msg1][msg2]')
+ end
+
def test_default_formatter
Setting.text_formatting = 'unknown'
text = 'a *link*: http://www.example.net/'