提交 bb55bbd2 编写于 作者: M Mikel Lindsaar 提交者: Yehuda Katz

Fixing actionmailer tests for CI

上级 a4c32897
......@@ -461,7 +461,8 @@ def different_layout(layout_name='')
assert_instance_of Mail::Message, mail
end
test "calling deliver on the action should increment the deliveries collection" do
test "calling deliver on the action should increment the deliveries collection if using the test mailer" do
BaseMailer.delivery_method = :test
BaseMailer.deliveries.clear
BaseMailer.welcome.deliver
assert_equal(1, BaseMailer.deliveries.length)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册