Running tests

Added by Dmitry Makurin 25 days ago

Our setup:

Environment:
  Redmine version                4.0.5.stable
  Ruby version                   2.6.3-p62 (2019-04-16) [x86_64-linux]
  Rails version                  5.2.3
  Environment                    development
  Database adapter               rdb
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.10.0
  Git                            2.20.1
  Filesystem                     
Redmine plugins:
  no plugin installed

When running

rake test RAILS_ENV=test

I've noticed that a lot of assertions are failing on empty array ActionMailer::Base.deliveries.
Changing deliver_later to deliver_now in mailer.rb fixes that problem, but I don't think it's a reliable solution.
What am I missing?