OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/spec/support/shared_fixtures/users/global_add_user.rb

12 lines
380 B

require_relative '../shared_fixture'
::SharedFixture.register! :global_add_user do
global_add_user_role = FactoryBot.create :global_role, name: 'Global add user role', permissions: %i[add_user]
FactoryBot.create(:user).tap do |user|
FactoryBot.create(:global_member,
principal: user,
roles: [global_add_user_role])
end
end