Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dca3d7f

Browse files
committedJan 12, 2022
Handle parameterized delivery jobs a little differently
1 parent aa3cc96 commit dca3d7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎lib/rspec/rails/matchers/have_enqueued_mail.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def process_arguments(job, given_mail_args)
102102
end
103103

104104
def use_given_mail_args?(job)
105+
return true if defined?(ActionMailer::Parameterized::DeliveryJob) && job[:job] <= ActionMailer::Parameterized::DeliveryJob
105106
return false if rails_6_1_and_ruby_3_1?
106107

107108
!(defined?(ActionMailer::MailDeliveryJob) && job[:job] <= ActionMailer::MailDeliveryJob)

0 commit comments

Comments
 (0)
Please sign in to comment.