From f7c61b629e76e21ae78c6da3e9f6ee070d03bae8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 Apr 2005 08:16:57 +0000 Subject: Added options to set cc, bcc, subject, and body for UrlHelper#mail_to #966 [DeLynn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/url_helper_test.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 32b98eb5dc..b1f2dd65e9 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -79,10 +79,16 @@ class UrlHelperTest < Test::Unit::TestCase mail_to("david@loudthinking.com", "David Heinemeier Hansson", :class => "admin") end - def test_mail_to_with_javascript assert_equal "", mail_to("me@domain.com", "My email", :encode => "javascript") end + + def test_mail_with_options + assert_equal( + %(My email), + 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_hex assert_equal "My email", mail_to("me@domain.com", "My email", :encode => "hex") -- cgit v1.2.3