aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mail_service_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/test/mail_service_test.rb')
-rwxr-xr-xactionmailer/test/mail_service_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb
index 50eb1984b5..c181b14f9a 100755
--- a/actionmailer/test/mail_service_test.rb
+++ b/actionmailer/test/mail_service_test.rb
@@ -145,6 +145,11 @@ class TestMailer < ActionMailer::Base
content_type "text/html"
end
+ def html_mail_with_underscores(recipient)
+ subject "html mail with underscores"
+ body %{<a href="http://google.com" target="_blank">_Google</a>}
+ end
+
def custom_template(recipient)
recipients recipient
subject "[Signed up] Welcome #{recipient}"
@@ -631,6 +636,11 @@ EOF
assert_equal "text/html", mail.content_type
end
+ def test_html_mail_with_underscores
+ mail = TestMailer.create_html_mail_with_underscores(@recipient)
+ assert_equal %{<a href="http://google.com" target="_blank">_Google</a>}, mail.body
+ end
+
def test_various_newlines
mail = TestMailer.create_various_newlines(@recipient)
assert_equal("line #1\nline #2\nline #3\nline #4\n\n" +