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/url_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/url_test.rb')
-rw-r--r-- | actionmailer/test/url_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/test/url_test.rb b/actionmailer/test/url_test.rb index 2ea1723434..dcd80f46b5 100644 --- a/actionmailer/test/url_test.rb +++ b/actionmailer/test/url_test.rb @@ -19,9 +19,9 @@ class UrlTestMailer < ActionMailer::Base def signed_up_with_url(recipient) @recipient = recipient - @welcome_url = url_for :host => "example.com", :controller => "welcome", :action => "greeting" - mail(:to => recipient, :subject => "[Signed up] Welcome #{recipient}", - :from => "system@loudthinking.com", :date => Time.local(2004, 12, 12)) + @welcome_url = url_for host: "example.com", controller: "welcome", action: "greeting" + mail(to: recipient, subject: "[Signed up] Welcome #{recipient}", + from: "system@loudthinking.com", date: Time.local(2004, 12, 12)) end end @@ -58,7 +58,7 @@ class ActionMailerUrlTest < ActionMailer::TestCase AppRoutes.draw do get ':controller(/:action(/:id))' - get '/welcome' => "foo#bar", :as => "welcome" + get '/welcome' => "foo#bar", as: "welcome" end expected = new_mail |