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

only 2 out of 3 builtins are actvie (deleted is blocked)

Markus Kahl20ed40be1ea0
diff --git a/spec/lib/open_project/enterprise_spec.rb b/spec/lib/open_project/enterprise_spec.rb
index ec80b39c994..e2ceb386b65 100644
--- a/spec/lib/open_project/enterprise_spec.rb
+++ b/spec/lib/open_project/enterprise_spec.rb
@@ -32,13 +32,13 @@ require 'open_project/passwords'
describe OpenProject::Enterprise do
describe "#user_limit_reached?" do
let(:user_limit) { 2 }
- let(:builtin_user_count) { 3 }
+ let(:builtin_user_count) { 2 }
before do
- # create 3 built-in users
+ # create 3 built-in users, only 2 of which are active
User.system
User.anonymous
- DeletedUser.first
+ DeletedUser.first # locked, not active
allow(OpenProject::Enterprise).to receive(:user_limit).and_return(user_limit)
end