diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-24 12:39:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-24 12:39:06 +0000 |
commit | dfca67d844ca10498e1e4e4834117bc390696d46 (patch) | |
tree | e2229dc8b7a5f0555fa09c2ca3f98f1d5fe6102b /test/unit | |
parent | 458800c1d5755e068210259adf42de1d3c373f90 (diff) | |
download | redmine-dfca67d844ca10498e1e4e4834117bc390696d46.tar.gz redmine-dfca67d844ca10498e1e4e4834117bc390696d46.zip |
Fixed that www followed by a dot generates broken links in formatted text (#3676).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11473 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 6def2f40c..91323d3a5 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -84,7 +84,10 @@ class ApplicationHelperTest < ActionView::TestCase # escaping 'http://foo"bar' => '<a class="external" href="http://foo"bar">http://foo"bar</a>', # wrap in angle brackets - '<http://foo.bar>' => '<<a class="external" href="http://foo.bar">http://foo.bar</a>>' + '<http://foo.bar>' => '<<a class="external" href="http://foo.bar">http://foo.bar</a>>', + # invalid urls + 'http://' => 'http://', + 'www.' => 'www.', } to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } end |