aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mail_layout_test.rb
diff options
context:
space:
mode:
authorZuhao Wan <wanzuhao@gmail.com>2014-05-13 13:17:27 +0800
committerZuhao Wan <wanzuhao@gmail.com>2014-05-13 15:03:53 +0800
commit4d9e4ea47ac2e48960bf901d9eeb6731ab39a507 (patch)
tree61a155445fe94a5296f6ad208049f2d73993a4a9 /actionmailer/test/mail_layout_test.rb
parent84908bbde97ef70b09aca4937793052422bc06ed (diff)
downloadrails-4d9e4ea47ac2e48960bf901d9eeb6731ab39a507.tar.gz
rails-4d9e4ea47ac2e48960bf901d9eeb6731ab39a507.tar.bz2
rails-4d9e4ea47ac2e48960bf901d9eeb6731ab39a507.zip
Remove unnecessary setup and teardown.
Diffstat (limited to 'actionmailer/test/mail_layout_test.rb')
-rw-r--r--actionmailer/test/mail_layout_test.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/actionmailer/test/mail_layout_test.rb b/actionmailer/test/mail_layout_test.rb
index 7f959282cb..166dd096d4 100644
--- a/actionmailer/test/mail_layout_test.rb
+++ b/actionmailer/test/mail_layout_test.rb
@@ -44,16 +44,6 @@ class ExplicitLayoutMailer < ActionMailer::Base
end
class LayoutMailerTest < ActiveSupport::TestCase
- def setup
- set_delivery_method :test
- ActionMailer::Base.perform_deliveries = true
- ActionMailer::Base.deliveries.clear
- end
-
- def teardown
- restore_delivery_method
- end
-
def test_should_pickup_default_layout
mail = AutoLayoutMailer.hello
assert_equal "Hello from layout Inside", mail.body.to_s.strip