debian-mirror-gitlab/spec/factories/user_highest_roles.rb
2020-04-22 19:07:51 +05:30

14 lines
504 B
Ruby

# 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