From fef6c11d2afeb57028886c6c15febcf5be3945ae Mon Sep 17 00:00:00 2001 From: Ronak Jangir Date: Fri, 18 Sep 2015 22:56:42 +0530 Subject: Added test for `any` if called without specifying any format Example ````ruby mail(hash) do |format| format.any end ```` --- actionmailer/test/mailers/base_mailer.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionmailer/test/mailers') diff --git a/actionmailer/test/mailers/base_mailer.rb b/actionmailer/test/mailers/base_mailer.rb index bd991e209e..8c2225ce60 100644 --- a/actionmailer/test/mailers/base_mailer.rb +++ b/actionmailer/test/mailers/base_mailer.rb @@ -80,6 +80,12 @@ class BaseMailer < ActionMailer::Base end end + def explicit_without_specifying_format_with_any(hash = {}) + mail(hash) do |format| + format.any + end + end + def explicit_multipart_with_options(include_html = false) mail do |format| format.text(content_transfer_encoding: "base64"){ render "welcome" } -- cgit v1.2.3