aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-19 12:19:20 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-19 12:19:20 +0000
commit5eac7ad1d992ce3dfd4943e3226db745ef528539 (patch)
tree7d59bcd69c51dad79e386f700cd17c9cd89188cd /actionpack/test
parent0369ec79a9c752cac137ae8223e47215a34c39d2 (diff)
downloadrails-5eac7ad1d992ce3dfd4943e3226db745ef528539.tar.gz
rails-5eac7ad1d992ce3dfd4943e3226db745ef528539.tar.bz2
rails-5eac7ad1d992ce3dfd4943e3226db745ef528539.zip
Updated tests for TextHelper#auto_link
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/text_helper_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index 086eb46d36..2082f4aae8 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -61,8 +61,9 @@ class TextHelperTest < Test::Unit::TestCase
end
def test_auto_linking
- assert_equal %(hello <a href="mailto:david@loudthinking.com">david@loudthinking.com</a>), auto_link_email_addresses("hello david@loudthinking.com")
- assert_equal %(Go to <a href="http://www.rubyonrails.com">http://www.rubyonrails.com</a>), auto_link_urls("Go to http://www.rubyonrails.com")
+ assert_equal %(hello <a href="mailto:david@loudthinking.com">david@loudthinking.com</a>), auto_link("hello david@loudthinking.com", :email_addresses)
+ assert_equal %(Go to <a href="http://www.rubyonrails.com">http://www.rubyonrails.com</a>), auto_link("Go to http://www.rubyonrails.com", :urls)
+ assert_equal %(Go to http://www.rubyonrails.com), auto_link("Go to http://www.rubyonrails.com", :email_addresses)
assert_equal %(Go to <a href="http://www.rubyonrails.com">http://www.rubyonrails.com</a> and say hello to <a href="mailto:david@loudthinking.com">david@loudthinking.com</a>), auto_link("Go to http://www.rubyonrails.com and say hello to david@loudthinking.com")
end
end \ No newline at end of file