aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-03-19 17:03:02 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-03-19 17:03:02 +0000
commitab9f32442318ab306df3c5282da56e50cf807d8a (patch)
tree378d180ab7df6f2793a1631d63b65f0bf02aa6b3 /actionpack/test/template
parent83fa114e51bddabbbfc7e81edb5c3c6685c0fda4 (diff)
downloadrails-ab9f32442318ab306df3c5282da56e50cf807d8a.tar.gz
rails-ab9f32442318ab306df3c5282da56e50cf807d8a.tar.bz2
rails-ab9f32442318ab306df3c5282da56e50cf807d8a.zip
Undo accidental escaping for mail_to; add regression test. Fix incorrect credit in changelog. Closes #4202.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/url_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb
index 95b9373c7f..2c7a526315 100644
--- a/actionpack/test/template/url_helper_test.rb
+++ b/actionpack/test/template/url_helper_test.rb
@@ -193,6 +193,10 @@ class UrlHelperTest < Test::Unit::TestCase
mail_to("me@example.com", "My email", :cc => "ccaddress@example.com", :bcc => "bccaddress@example.com", :subject => "This is an example email", :body => "This is the body of the message.")
)
end
+
+ def test_mail_to_with_img
+ assert_dom_equal %(<a href="mailto:feedback@example.com"><img src="/feedback.png" /></a>), mail_to('feedback@example.com', '<img src="/feedback.png" />')
+ end
def test_mail_to_with_hex
assert_dom_equal "<a href=\"mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d\">My email</a>", mail_to("me@domain.com", "My email", :encode => "hex")