gitlab-org--gitlab-foss/spec/factories/user_highest_roles.rb

15 lines
504 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :user_highest_role do
highest_access_level { nil }
user
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