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

16 lines
557 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :group_group_link do
2021-04-29 21:17:54 +05:30
shared_group { association(:group) }
shared_with_group { association(: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