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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
mock the delayed_job backend
ulferts718b2df8f5fa
diff --git a/spec/features/notifications/reminder_mail_spec.rb b/spec/features/notifications/reminder_mail_spec.rbindex 037e556e0a2..74e0625d5bd 100644--- a/spec/features/notifications/reminder_mail_spec.rb+++ b/spec/features/notifications/reminder_mail_spec.rb@@ -106,6 +106,12 @@ describe "Reminder email", type: :feature, js: true doinvolved_work_packageActiveJob::Base.queue_adapter.enqueued_jobs.clear++ # There is no delayed_job associated when using the testing backend of ActiveJob+ # so we have to mock it.+ allow(Notifications::ScheduleReminderMailsJob)+ .to receive(:delayed_job)+ .and_return(instance_double(Delayed::Backend::ActiveRecord::Job, run_at: Time.current.utc))endit 'sends a digest mail based on the configuration', with_settings: { journal_aggregation_time_minutes: 0 } do