diff options
author | Marcel Molina <marcel@vernix.org> | 2005-12-26 19:31:40 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-12-26 19:31:40 +0000 |
commit | 839f03b7d0ae9d9ff49cc777488630253186b184 (patch) | |
tree | b7aa0a12cfc057c6dae8146069948ef4a372c7f0 /actionpack/test/template | |
parent | eb53467bdf7397503e7f709ae65a320b698e367b (diff) | |
download | rails-839f03b7d0ae9d9ff49cc777488630253186b184.tar.gz rails-839f03b7d0ae9d9ff49cc777488630253186b184.tar.bz2 rails-839f03b7d0ae9d9ff49cc777488630253186b184.zip |
Make auto_link match urls with a port number specified.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/text_helper_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb index 5bfe0709d9..37c81e12a6 100644 --- a/actionpack/test/template/text_helper_test.rb +++ b/actionpack/test/template/text_helper_test.rb @@ -128,6 +128,8 @@ class TextHelperTest < Test::Unit::TestCase link3_result = %{<a href="#{link3_raw}">#{link3_raw}</a>} link4_raw = 'http://foo.example.com/controller/action?parm=value&p2=v2#anchor123' link4_result = %{<a href="#{link4_raw}">#{link4_raw}</a>} + link5_raw = 'http://foo.example.com:3000/controller/action' + link5_result = %{<a href="#{link5_raw}">#{link5_raw}</a>} assert_equal %(hello #{email_result}), auto_link("hello #{email_raw}", :email_addresses) assert_equal %(Go to #{link_result}), auto_link("Go to #{link_raw}", :urls) @@ -152,6 +154,7 @@ class TextHelperTest < Test::Unit::TestCase assert_equal %(<p>Go to #{link3_result}. seriously, #{link3_result}? i think I'll say hello to #{email_result}. instead.</p>), auto_link(%(<p>Go to #{link3_raw}. seriously, #{link3_raw}? i think I'll say hello to #{email_raw}. instead.</p>)) assert_equal %(<p>Link #{link4_result}</p>), auto_link("<p>Link #{link4_raw}</p>") assert_equal %(<p>#{link4_result} Link</p>), auto_link("<p>#{link4_raw} Link</p>") + assert_equal %(<p>#{link5_result} Link</p>), auto_link("<p>#{link5_raw} Link</p>") end def test_auto_link_at_eol |