diff options
author | Kirill Nikitin <locke23rus@gmail.com> | 2012-10-07 21:54:14 +0400 |
---|---|---|
committer | Kirill Nikitin <locke23rus@gmail.com> | 2012-10-07 21:54:14 +0400 |
commit | 96f290eac03e1241fc1e57f119eaca72b682c5af (patch) | |
tree | 893ed86433062fb3ef11e9f0e0d8d64ebbf3405e /actionmailer/test/mail_helper_test.rb | |
parent | 918f7038b3d4d4180a4d1056bb4b7b3f3b85508f (diff) | |
download | rails-96f290eac03e1241fc1e57f119eaca72b682c5af.tar.gz rails-96f290eac03e1241fc1e57f119eaca72b682c5af.tar.bz2 rails-96f290eac03e1241fc1e57f119eaca72b682c5af.zip |
Update actionmailer with new hash syntax.
Diffstat (limited to 'actionmailer/test/mail_helper_test.rb')
-rw-r--r-- | actionmailer/test/mail_helper_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actionmailer/test/mail_helper_test.rb b/actionmailer/test/mail_helper_test.rb index d8a73e6c46..24ccaab8df 100644 --- a/actionmailer/test/mail_helper_test.rb +++ b/actionmailer/test/mail_helper_test.rb @@ -10,7 +10,7 @@ class HelperMailer < ActionMailer::Base "it off!" mail_with_defaults do |format| - format.html { render(:inline => "<%= block_format @text %>") } + format.html { render(inline: "<%= block_format @text %>") } end end @@ -18,7 +18,7 @@ class HelperMailer < ActionMailer::Base @text = "But soft! What light through yonder window breaks?" mail_with_defaults do |format| - format.html { render(:inline => "<%= format_paragraph @text, 15, 1 %>") } + format.html { render(inline: "<%= format_paragraph @text, 15, 1 %>") } end end @@ -26,19 +26,19 @@ class HelperMailer < ActionMailer::Base @text = "Antidisestablishmentarianism is very long." mail_with_defaults do |format| - format.html { render(:inline => "<%= format_paragraph @text, 10, 1 %>") } + format.html { render(inline: "<%= format_paragraph @text, 10, 1 %>") } end end def use_mailer mail_with_defaults do |format| - format.html { render(:inline => "<%= mailer.message.subject %>") } + format.html { render(inline: "<%= mailer.message.subject %>") } end end def use_message mail_with_defaults do |format| - format.html { render(:inline => "<%= message.subject %>") } + format.html { render(inline: "<%= message.subject %>") } end end @@ -55,15 +55,15 @@ The second TEXT mail_with_defaults do |format| - format.html { render(:inline => "<%= block_format @text %>") } + format.html { render(inline: "<%= block_format @text %>") } end end protected def mail_with_defaults(&block) - mail(:to => "test@localhost", :from => "tester@example.com", - :subject => "using helpers", &block) + mail(to: "test@localhost", from: "tester@example.com", + subject: "using helpers", &block) end end |