2020-03-12 14:09:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :user_highest_role do
|
2020-03-26 05:07:52 -04:00
|
|
|
highest_access_level { nil }
|
2020-03-12 14:09:28 -04:00
|
|
|
user
|
2020-03-18 20:09:27 -04:00
|
|
|
|
2020-03-26 05:07:52 -04:00
|
|
|
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 } }
|
2020-03-12 14:09:28 -04:00
|
|
|
end
|
|
|
|
end
|