diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-30 15:16:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-30 15:16:58 +0000 |
commit | b4d66593ef6ed7b0d260cece6ffc41874b077cea (patch) | |
tree | 37764dd380994d7d243c70d1d84d95eec9e9a432 /test | |
parent | cae547a7ea519aa2519053e366aecba378e787c6 (diff) | |
download | redmine-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.rb | 2 |
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&t=z&s=">http://foo.bar/page?p=1&t=z&s=</a>', 'http://foo.bar/page#125' => '<a href="http://foo.bar/page#125">http://foo.bar/page#125</a>' |