aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-04-13 14:07:46 -0700
committerwycats <wycats@gmail.com>2010-04-13 14:07:46 -0700
commit8e9df34fa3fd22719d939ba72f19b3ae9ffcc018 (patch)
treefb7d56ee45fcf33ac78f6591e1fcd8d8de3a54c4 /actionmailer/test
parentdc251389d1ab4303b80a22642f4241940b73cbe7 (diff)
parentb4fd5e6f1a00b7c2b482de3d3b99a27adeba5920 (diff)
downloadrails-8e9df34fa3fd22719d939ba72f19b3ae9ffcc018.tar.gz
rails-8e9df34fa3fd22719d939ba72f19b3ae9ffcc018.tar.bz2
rails-8e9df34fa3fd22719d939ba72f19b3ae9ffcc018.zip
Merge branch 'master' of github.com:rails/rails
Diffstat (limited to 'actionmailer/test')
-rw-r--r--actionmailer/test/base_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb
index baeee542be..8e69073009 100644
--- a/actionmailer/test/base_test.rb
+++ b/actionmailer/test/base_test.rb
@@ -510,28 +510,28 @@ class BaseTest < ActiveSupport::TestCase
# Rendering
test "you can specify a different template for implicit render" do
- mail = BaseMailer.implicit_different_template('implicit_multipart')
+ mail = BaseMailer.implicit_different_template('implicit_multipart').deliver
assert_equal("HTML Implicit Multipart", mail.html_part.body.decoded)
assert_equal("TEXT Implicit Multipart", mail.text_part.body.decoded)
end
test "you can specify a different template for explicit render" do
- mail = BaseMailer.explicit_different_template('explicit_multipart_templates')
+ mail = BaseMailer.explicit_different_template('explicit_multipart_templates').deliver
assert_equal("HTML Explicit Multipart Templates", mail.html_part.body.decoded)
assert_equal("TEXT Explicit Multipart Templates", mail.text_part.body.decoded)
end
test "you can specify a different layout" do
- mail = BaseMailer.different_layout('different_layout')
+ mail = BaseMailer.different_layout('different_layout').deliver
assert_equal("HTML -- HTML", mail.html_part.body.decoded)
assert_equal("PLAIN -- PLAIN", mail.text_part.body.decoded)
end
test "you can specify the template path for implicit lookup" do
- mail = BaseMailer.welcome_from_another_path('another.path/base_mailer')
+ mail = BaseMailer.welcome_from_another_path('another.path/base_mailer').deliver
assert_equal("Welcome from another path", mail.body.encoded)
- mail = BaseMailer.welcome_from_another_path(['unknown/invalid', 'another.path/base_mailer'])
+ mail = BaseMailer.welcome_from_another_path(['unknown/invalid', 'another.path/base_mailer']).deliver
assert_equal("Welcome from another path", mail.body.encoded)
end