diff options
Diffstat (limited to 'actionmailer/test/base_test.rb')
-rw-r--r-- | actionmailer/test/base_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb index 7e794e10e8..222db66aaa 100644 --- a/actionmailer/test/base_test.rb +++ b/actionmailer/test/base_test.rb @@ -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) |