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/i18n_with_controller_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/i18n_with_controller_test.rb')
-rw-r--r-- | actionmailer/test/i18n_with_controller_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/test/i18n_with_controller_test.rb b/actionmailer/test/i18n_with_controller_test.rb index 68ed86e0d4..a3e93c9c31 100644 --- a/actionmailer/test/i18n_with_controller_test.rb +++ b/actionmailer/test/i18n_with_controller_test.rb @@ -9,15 +9,15 @@ class I18nTestMailer < ActionMailer::Base def mail_with_i18n_subject(recipient) @recipient = recipient I18n.locale = :de - mail(:to => recipient, :subject => "#{I18n.t :email_subject} #{recipient}", - :from => "system@loudthinking.com", :date => Time.local(2004, 12, 12)) + mail(to: recipient, subject: "#{I18n.t :email_subject} #{recipient}", + from: "system@loudthinking.com", date: Time.local(2004, 12, 12)) end end class TestController < ActionController::Base def send_mail I18nTestMailer.mail_with_i18n_subject("test@localhost").deliver - render :text => 'Mail sent' + render text: 'Mail sent' end end @@ -32,7 +32,7 @@ class ActionMailerI18nWithControllerTest < ActionDispatch::IntegrationTest end def setup - I18n.backend.store_translations('de', :email_subject => '[Signed up] Welcome') + I18n.backend.store_translations('de', email_subject: '[Signed up] Welcome') end def teardown |