diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-04 21:30:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-04 21:30:12 +0000 |
commit | cd824c6ecf38c030603cec4a8c035fb2071421fc (patch) | |
tree | a2aee217a05b6847f01d42b6be12f4a421891327 /test | |
parent | 4db45b8ceddfa77e1935b7a4f1939b33d11244aa (diff) | |
download | redmine-cd824c6ecf38c030603cec4a8c035fb2071421fc.tar.gz redmine-cd824c6ecf38c030603cec4a8c035fb2071421fc.zip |
Redmine links regexp fix (#1369, url hash turned into a ticket link).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1492 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 937d8aa20..4f8ededd1 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -108,7 +108,9 @@ class ApplicationHelperTest < HelperTestCase '!version:"1.0"' => 'version:"1.0"', '!source:/some/file' => 'source:/some/file', # invalid expressions - 'source:' => 'source:' + 'source:' => 'source:', + # url hash + "http://foo.bar/FAQ#3" => '<a class="external" href="http://foo.bar/FAQ#3">http://foo.bar/FAQ#3</a>', } @project = Project.find(1) to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } |