diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 21:38:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 21:38:24 +0300 |
commit | 983a0bba5d2a042c4a3bbb22432ec192c7501d82 (patch) | |
tree | b153cd387c14ba23bd5a07514c7c01fddf6a78a0 /spec/factories/users.rb | |
parent | a2bddee2cdb38673df0e004d5b32d9f77797de64 (diff) |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'spec/factories/users.rb')
-rw-r--r-- | spec/factories/users.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 0ce567e11fe..f274503f0e7 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -27,6 +27,10 @@ FactoryBot.define do user_type { :alert_bot } end + trait :project_bot do + user_type { :project_bot } + end + trait :external do external { true } end @@ -83,12 +87,17 @@ FactoryBot.define do transient do developer_projects { [] } + maintainer_projects { [] } end after(:create) do |user, evaluator| evaluator.developer_projects.each do |project| project.add_developer(user) end + + evaluator.maintainer_projects.each do |project| + project.add_maintainer(user) + end end factory :omniauth_user do |