From a13ad4a6c1e72edc3ec03e98c94fe865ad147d2e Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Sat, 13 Sep 2014 00:57:53 +0530 Subject: do not generate blank options in mailTo when mail_to generate blank options for any passed options(cc, bcc, body, subject) then MICROSOFT OUTLOOK treats it differently and set wrong values in different options. --- actionview/test/template/url_helper_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionview/test') diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index e0678ae1f7..caff0dc6f6 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -496,6 +496,11 @@ class UrlHelperTest < ActiveSupport::TestCase %{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.") ) + + assert_dom_equal( + %{My email}, + mail_to("me@example.com", "My email", cc: '', bcc: '', subject: "This is an example email", body: "This is the body of the message.") + ) end def test_mail_to_with_img -- cgit v1.2.3