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

don't error additionally if ldap server was not created

Ivan Kuchina95bf8b09251
diff --git a/spec/support/shared/with_test_ldap.rb b/spec/support/shared/with_test_ldap.rb
index bc0916e9a2f..33cd1af571c 100644
--- a/spec/support/shared/with_test_ldap.rb
+++ b/spec/support/shared/with_test_ldap.rb
@@ -37,7 +37,7 @@ RSpec.shared_context "with temporary LDAP" do
end
after(:all) do
- @ldap_server.stop
+ @ldap_server&.stop # rubocop:disable RSpec/InstanceVariable
end
# Ldap has: