Basically, with the test config set up exactly how it worked in Rails 4 (delivery method set as test etc), aside from deprecated options which I have replaced, mail only sends with deliver_now, not deliver_later. Deliver_later works in the development environment, even when the config is identical between the two environments.
Test environment mailer config:
config.action_mailer.delivery_method = :test
config.action_mailer.perform_deliveries = true
config.action_mailer.perform_caching = false
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
active_job.queue_adapter
? – Partnershiptest.rb
comment: The :test delivery method accumulates sent emails in the ActionMailer::Base.deliveries array. so why do you want them to be sent? – Partnership