Permalink
Browse files

Merge pull request #15086 from zuhao/refactor_actionmailer_mail_layou…

…t_test

Do not clear deliveries in setup.
  • Loading branch information...
2 parents ef8ac1f + 4d9e4ea commit b6d627b49a208262ce2f0994bd27921bed6e0fa6 @senny senny committed May 13, 2014
Showing with 0 additions and 10 deletions.
  1. +0 −10 actionmailer/test/mail_layout_test.rb
@@ -44,16 +44,6 @@ def logout
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

0 comments on commit b6d627b

Please sign in to comment.