]> source.dussan.org Git - redmine.git/commitdiff
Add test for #4354.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 9 Dec 2009 10:31:17 +0000 (10:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 9 Dec 2009 10:31:17 +0000 (10:31 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3142 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index 90eaed4f761d18b5cfedaffe625f6345583f39b9..2f7c6fdef95f7a759e02338c6841b22adbad6728 100644 (file)
@@ -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/'