提交 b6d627b4 编写于 作者: Y Yves Senn

Merge pull request #15086 from zuhao/refactor_actionmailer_mail_layout_test

Do not clear deliveries in setup.
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册