aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/i18n_with_controller_test.rb
diff options
context:
space:
mode:
authorKirill Nikitin <locke23rus@gmail.com>2012-10-07 21:54:14 +0400
committerKirill Nikitin <locke23rus@gmail.com>2012-10-07 21:54:14 +0400
commit96f290eac03e1241fc1e57f119eaca72b682c5af (patch)
tree893ed86433062fb3ef11e9f0e0d8d64ebbf3405e /actionmailer/test/i18n_with_controller_test.rb
parent918f7038b3d4d4180a4d1056bb4b7b3f3b85508f (diff)
downloadrails-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.rb8
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