aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mail_layout_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-10-21 21:26:10 -0200
committerYehuda Katz <wycats@gmail.com>2009-11-01 02:23:48 +0100
commite9667ad1f0e74694d9df16fa2819a1679ee21e23 (patch)
tree9b2a03874509551184f4405aa40aebc41f433d60 /actionmailer/test/mail_layout_test.rb
parent418c3f801cd436f011b37fe69059073e69e05084 (diff)
downloadrails-e9667ad1f0e74694d9df16fa2819a1679ee21e23.tar.gz
rails-e9667ad1f0e74694d9df16fa2819a1679ee21e23.tar.bz2
rails-e9667ad1f0e74694d9df16fa2819a1679ee21e23.zip
Make tests run without deprecation warning (just one left).
Diffstat (limited to 'actionmailer/test/mail_layout_test.rb')
-rw-r--r--actionmailer/test/mail_layout_test.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/actionmailer/test/mail_layout_test.rb b/actionmailer/test/mail_layout_test.rb
index 50901f52ec..f37c26ff69 100644
--- a/actionmailer/test/mail_layout_test.rb
+++ b/actionmailer/test/mail_layout_test.rb
@@ -11,14 +11,18 @@ class AutoLayoutMailer < ActionMailer::Base
recipients recipient
subject "You have a mail"
from "tester@example.com"
- body render(:inline => "Hello, <%= @world %>", :layout => 'spam', :body => { :world => "Earth" })
+
+ @world = "Earth"
+ render(:inline => "Hello, <%= @world %>", :layout => 'spam')
end
def nolayout(recipient)
recipients recipient
subject "You have a mail"
from "tester@example.com"
- body render(:inline => "Hello, <%= @world %>", :layout => false, :body => { :world => "Earth" })
+
+ @world = "Earth"
+ render(:inline => "Hello, <%= @world %>", :layout => false)
end
def multipart(recipient, type = nil)