diff --git a/actionmailer/test/parameterized_test.rb b/actionmailer/test/parameterized_test.rb index 3713dc3e3e..3369808515 100644 --- a/actionmailer/test/parameterized_test.rb +++ b/actionmailer/test/parameterized_test.rb @@ -83,6 +83,7 @@ class ParameterizedTest < ActiveSupport::TestCase def with_delivery_job(job) old_delivery_job = ParamsMailer.delivery_job ParamsMailer.delivery_job = job + yield ensure ParamsMailer.delivery_job = old_delivery_job end