Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

cleaned up and amended comments

Markus Kahlb7c0e9cb8302
diff --git a/spec/workers/application_job_spec.rb b/spec/workers/application_job_spec.rb
index 20b990257ee..4ce61ea9e98 100644
--- a/spec/workers/application_job_spec.rb
+++ b/spec/workers/application_job_spec.rb
@@ -56,18 +56,18 @@ describe ApplicationJob do
end
end
- describe 'email configuration' do #, with_settings: { email_delivery_method: :smtp } do
- # the email delivery method has to be smtp for the settings to be reloaded
-
+ describe 'email configuration' do
let(:ports) { [] }
before do
+ # pick a random job to test if the settings are updated
allow_any_instance_of(Principals::DeleteJob).to receive(:perform) do
ports << ActionMailer::Base.smtp_settings[:port]
end
end
it "is reloaded for each job" do
+ # the email delivery method has to be smtp for the settings to be reloaded
Setting.email_delivery_method = :smtp
Principals::DeleteJob.perform_now nil