Browse files

Updated tests for TextHelper#auto_link

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0369ec7 commit 5eac7ad1d992ce3dfd4943e3226db745ef528539 @dhh dhh committed Feb 19, 2005
Showing with 8 additions and 3 deletions.
  1. +5 −1 actionpack/CHANGELOG
  2. +3 −2 actionpack/test/template/text_helper_test.rb
@@ -1,10 +1,14 @@
+* Added Iran and Irak to the countries list used by FormOptions#country_select and FormOptions#country_options_for_select
+* Renamed link_to_image to link_image_to (since thats what it actually does) -- kept alias for the old method name
* Fixed textilize for RedCloth3 to keep doing hardbreaks
* Fixed that assert_template_xpath_matches did not indicate when a path was not found #658 [Eric Hodel]
-* Added TextHelper#auto_link, TextHelper#auto_link_urls, and TextHelper#auto_link_email_addresses to turn those elements into ahrefs
+* Added TextHelper#auto_link to turn email addresses and urls into ahrefs
* Fixed that on validation errors, scaffold couldn't find template #654 [mindel]
@@ -61,8 +61,9 @@ def test_pluralization
def test_auto_linking
- assert_equal %(hello <a href=""></a>), auto_link_email_addresses("hello")
- assert_equal %(Go to <a href=""></a>), auto_link_urls("Go to")
+ assert_equal %(hello <a href=""></a>), auto_link("hello", :email_addresses)
+ assert_equal %(Go to <a href=""></a>), auto_link("Go to", :urls)
+ assert_equal %(Go to, auto_link("Go to", :email_addresses)
assert_equal %(Go to <a href=""></a> and say hello to <a href=""></a>), auto_link("Go to and say hello to")

0 comments on commit 5eac7ad

Please sign in to comment.