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:
parent
a4c3289758
commit
bb55bbd207
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue