diff options
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/user_highest_roles.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/factories/user_highest_roles.rb b/spec/factories/user_highest_roles.rb index d04db507e44..761a8b6c583 100644 --- a/spec/factories/user_highest_roles.rb +++ b/spec/factories/user_highest_roles.rb @@ -2,14 +2,13 @@ FactoryBot.define do factory :user_highest_role do + highest_access_level { nil } user - trait :maintainer do - highest_access_level { Gitlab::Access::MAINTAINER } - end - - trait :developer do - highest_access_level { Gitlab::Access::DEVELOPER } - end + trait(:guest) { highest_access_level { GroupMember::GUEST } } + trait(:reporter) { highest_access_level { GroupMember::REPORTER } } + trait(:developer) { highest_access_level { GroupMember::DEVELOPER } } + trait(:maintainer) { highest_access_level { GroupMember::MAINTAINER } } + trait(:owner) { highest_access_level { GroupMember::OWNER } } end end |