2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :group_group_link do
|
|
|
|
shared_group { create(:group) }
|
|
|
|
shared_with_group { create(:group) }
|
2020-04-22 19:07:51 +05:30
|
|
|
group_access { Gitlab::Access::DEVELOPER }
|
|
|
|
|
|
|
|
trait(:guest) { group_access { Gitlab::Access::GUEST } }
|
|
|
|
trait(:reporter) { group_access { Gitlab::Access::REPORTER } }
|
|
|
|
trait(:developer) { group_access { Gitlab::Access::DEVELOPER } }
|
|
|
|
trait(:owner) { group_access { Gitlab::Access::OWNER } }
|
|
|
|
trait(:maintainer) { group_access { Gitlab::Access::MAINTAINER } }
|
2019-12-26 22:10:19 +05:30
|
|
|
end
|
|
|
|
end
|