aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 14:58:51 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 14:58:51 -0200
commit063b058e28de226272bff64508f6a68d471fa398 (patch)
treeac0ea7a99b51a155182250b7e877888aeb745283 /actionview/test
parentbb9d20cf3434e20ac6f275e3ad29be42ebec207f (diff)
parenta13ad4a6c1e72edc3ec03e98c94fe865ad147d2e (diff)
downloadrails-063b058e28de226272bff64508f6a68d471fa398.tar.gz
rails-063b058e28de226272bff64508f6a68d471fa398.tar.bz2
rails-063b058e28de226272bff64508f6a68d471fa398.zip
Merge pull request #17143 from kuldeepaggarwal/fix-mailTo
mail_to helper method fix
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/url_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb
index ee3313489f..ef4df0407a 100644
--- a/actionview/test/template/url_helper_test.rb
+++ b/actionview/test/template/url_helper_test.rb
@@ -495,6 +495,11 @@ class UrlHelperTest < ActiveSupport::TestCase
%{<a href="mailto:me@example.com?cc=ccaddress%40example.com&amp;bcc=bccaddress%40example.com&amp;body=This%20is%20the%20body%20of%20the%20message.&amp;subject=This%20is%20an%20example%20email&amp;reply-to=foo%40bar.com">My email</a>},
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.", reply_to: "foo@bar.com")
)
+
+ assert_dom_equal(
+ %{<a href="mailto:me@example.com?body=This%20is%20the%20body%20of%20the%20message.&amp;subject=This%20is%20an%20example%20email">My email</a>},
+ 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