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

Adjust logged error message in tests.

Pavel Balashou8fe83aee876a
diff --git a/modules/storages/spec/models/nextcloud_storage_spec.rb b/modules/storages/spec/models/nextcloud_storage_spec.rb
index 9b1059290ae..0fd80e8563e 100644
--- a/modules/storages/spec/models/nextcloud_storage_spec.rb
+++ b/modules/storages/spec/models/nextcloud_storage_spec.rb
@@ -105,7 +105,7 @@ RSpec.describe Storages::NextcloudStorage do
expect(subject).to be(true)
expect(OpenProject.logger).to have_received(:error) do |msg, _|
- expect(msg).to eq "Unexpected error during NextcloudStorage ##{storage1.id} #{storage1.host}: Unexpected Error"
+ expect(msg).to eq "Unexpected error during NextcloudStorage group folders sync for ##{storage1.id} #{storage1.host}: Unexpected Error"
end
expect(Storages::GroupFolderPropertiesSyncService).to have_received(:new).with(storage1).once
expect(Storages::GroupFolderPropertiesSyncService).to have_received(:new).with(storage3).once