summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-30 15:16:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-30 15:16:58 +0000
commitb4d66593ef6ed7b0d260cece6ffc41874b077cea (patch)
tree37764dd380994d7d243c70d1d84d95eec9e9a432 /test
parentcae547a7ea519aa2519053e366aecba378e787c6 (diff)
downloadredmine-b4d66593ef6ed7b0d260cece6ffc41874b077cea.tar.gz
redmine-b4d66593ef6ed7b0d260cece6ffc41874b077cea.zip
Fixed: Links get chopped by punctuation marks in anchors.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@775 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/helpers/application_helper_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 10372fb74..24935bbb7 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -29,6 +29,8 @@ class ApplicationHelperTest < HelperTestCase
def test_auto_links
to_test = {
'http://foo.bar' => '<a href="http://foo.bar">http://foo.bar</a>',
+ 'http://foo.bar.' => '<a href="http://foo.bar">http://foo.bar</a>.',
+ 'http://foo.bar/foo.bar#foo.bar.' => '<a href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.',
'www.foo.bar' => '<a href="http://www.foo.bar">www.foo.bar</a>',
'http://foo.bar/page?p=1&t=z&s=' => '<a href="http://foo.bar/page?p=1&#38;t=z&#38;s=">http://foo.bar/page?p=1&#38;t=z&#38;s=</a>',
'http://foo.bar/page#125' => '<a href="http://foo.bar/page#125">http://foo.bar/page#125</a>'