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

tests[Op#52449]: assert defaults are honored in representer parser

Kabiru Mwenja86911f3d2939
diff --git a/modules/storages/spec/lib/api/v3/storages/storages_representer_parsing_spec.rb b/modules/storages/spec/lib/api/v3/storages/storages_representer_parsing_spec.rb
index 576043ba878..e4fe4281275 100644
--- a/modules/storages/spec/lib/api/v3/storages/storages_representer_parsing_spec.rb
+++ b/modules/storages/spec/lib/api/v3/storages/storages_representer_parsing_spec.rb
@@ -59,8 +59,9 @@ RSpec.describe API::V3::Storages::StorageRepresenter, "parsing" do
expect(parsed).to have_attributes(name: "Nextcloud Local", host: storage.host,
provider_type: "Storages::NextcloudStorage")
- aggregate_failures "does not parse nextcloud provider fields" do
- expect(parsed.provider_fields).to eq({})
+ aggregate_failures "honors provider fields defaults" do
+ expect(parsed).not_to be_automatically_managed
+ expect(parsed).to be_health_notifications_enabled
end
end
end