Because we need to have the ability to schedule email delivery, we have migrated to using Sidekiq to send emails with the deliver_later
method. Under the old regime that used deliver_now
, our testing could use
ActionMailer::Base.deliveries[index]
to inspect the recipient, subject, body, attachments, etc...
For testing purposes, is there an equivalent mechanism to inspect the contents of queued email when using Sidekiq and deliver_later
?