From 4d9e4ea47ac2e48960bf901d9eeb6731ab39a507 Mon Sep 17 00:00:00 2001 From: Zuhao Wan Date: Tue, 13 May 2014 13:17:27 +0800 Subject: Remove unnecessary setup and teardown. --- actionmailer/test/mail_layout_test.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'actionmailer') 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 -- cgit v1.2.3