aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2018-11-30 17:37:00 -0500
committerGannon McGibbon <gannon.mcgibbon@gmail.com>2018-11-30 17:38:26 -0500
commitebf484a64018cbf84e6d6c39f4a22f2f2bfc9d51 (patch)
tree6d0a90ad937b91f414ee3e99f836097d82b78280 /actionmailer
parentf6e1061c915a92389fee2819d29b13764942c985 (diff)
downloadrails-ebf484a64018cbf84e6d6c39f4a22f2f2bfc9d51.tar.gz
rails-ebf484a64018cbf84e6d6c39f4a22f2f2bfc9d51.tar.bz2
rails-ebf484a64018cbf84e6d6c39f4a22f2f2bfc9d51.zip
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.
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/test/parameterized_test.rb1
1 files changed, 1 insertions, 0 deletions
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