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

adapt spec to changes in delayed

ulferts720565a4ac80
diff --git a/spec/models/wiki_content_spec.rb b/spec/models/wiki_content_spec.rb
index 04821054f9b..6aa782a5df9 100644
--- a/spec/models/wiki_content_spec.rb
+++ b/spec/models/wiki_content_spec.rb
@@ -57,7 +57,10 @@ describe WikiContent, type: :model do
it 'sends mails to the wiki`s watchers', with_settings: { notified_events: ['wiki_content_added'] } do
wiki_watcher
- expect { content.save! }
+ expect {
+ content.save!
+ perform_enqueued_jobs
+ }
.to change { ActionMailer::Base.deliveries.size }
.by(1)
end
@@ -69,7 +72,10 @@ describe WikiContent, type: :model do
wiki_watcher
content.text = 'My new content'
- expect { content.save! }
+ expect {
+ content.save!
+ perform_enqueued_jobs
+ }
.to change { ActionMailer::Base.deliveries.size }
.by(3)
end