aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/text_helper_test.rb
diff options
context:
space:
mode:
authorKevin Glowacz <glowacz@gmail.com>2008-05-22 14:21:33 -0500
committerPratik Naik <pratiknaik@gmail.com>2008-05-22 21:10:40 +0100
commit1a73e98660b29a2ce9eccd5b0776367a4969a012 (patch)
tree11409f89e450878843adb4fcbe3c17f842f2c065 /actionpack/test/template/text_helper_test.rb
parentcff2291df5d1df106ae8cf116655f0703f53f8c3 (diff)
downloadrails-1a73e98660b29a2ce9eccd5b0776367a4969a012.tar.gz
rails-1a73e98660b29a2ce9eccd5b0776367a4969a012.tar.bz2
rails-1a73e98660b29a2ce9eccd5b0776367a4969a012.zip
Fix auto_link helper for already linked urls. [#72 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/test/template/text_helper_test.rb')
-rw-r--r--actionpack/test/template/text_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index 36c939f761..62cdca03d1 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -264,6 +264,7 @@ class TextHelperTest < ActionView::TestCase
assert_equal '', auto_link(nil)
assert_equal '', auto_link('')
assert_equal "#{link_result} #{link_result} #{link_result}", auto_link("#{link_raw} #{link_raw} #{link_raw}")
+ assert_equal '<a href="http://www.rubyonrails.com">Ruby On Rails</a>', auto_link('<a href="http://www.rubyonrails.com">Ruby On Rails</a>')
end
def test_auto_link_at_eol