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
Fix reset of settings
Oliver Günther79707b9ed1d2
diff --git a/modules/auth_saml/lib/open_project/auth_saml/engine.rb b/modules/auth_saml/lib/open_project/auth_saml/engine.rbindex 41cf1c3a9ee..455ac439112 100644--- a/modules/auth_saml/lib/open_project/auth_saml/engine.rb+++ b/modules/auth_saml/lib/open_project/auth_saml/engine.rb@@ -63,7 +63,7 @@ module OpenProjectdescription: "Provide a SAML provider and sync its settings through ENV",env_alias: "OPENPROJECT_SAML",writable: false,- default: nil,+ default: {},format: :hashendenddiff --git a/spec/support/shared/with_settings.rb b/spec/support/shared/with_settings.rbindex 6d516dbd799..d4286554d09 100644--- a/spec/support/shared/with_settings.rb+++ b/spec/support/shared/with_settings.rb@@ -42,7 +42,8 @@ RSpec.shared_context "with settings reset" doshared_let(:definitions_before) { Settings::Definition.all.dup }def reset(setting, **definitions)- definitions ||= Settings::Definition::DEFINITIONS[setting]+ definitions = Settings::Definition::DEFINITIONS[setting] if definitions.empty?+Settings::Definition.all.delete(setting)Settings::Definition.add(setting, **definitions)end