From ebf484a64018cbf84e6d6c39f4a22f2f2bfc9d51 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Fri, 30 Nov 2018 17:37:00 -0500 Subject: [PATCH] Add yield to with_delivery_job test helper Adds yield to parameterized mail test helper so assertions passed into with_delivery_job are actually ran. --- actionmailer/test/parameterized_test.rb | 1 + 1 file changed, 1 insertion(+) 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