1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixing actionmailer tests for CI

This commit is contained in:
Mikel Lindsaar 2010-02-07 18:32:52 +11:00 committed by Yehuda Katz
parent a4c3289758
commit bb55bbd207

View file

@ -461,7 +461,8 @@ class BaseTest < ActiveSupport::TestCase
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)