debian-mirror-gitlab/spec/factories/user_highest_roles.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
524 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :user_highest_role do
2020-04-22 19:07:51 +05:30
highest_access_level { nil }
2020-04-08 14:13:33 +05:30
user
2020-04-22 19:07:51 +05:30
2021-12-11 22:18:48 +05:30
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-04-08 14:13:33 +05:30
end
end