summaryrefslogtreecommitdiff
path: root/spec/factories/group_group_links.rb
blob: 6f98886faffb3dde00962f59f96eb4b6a98a7ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

FactoryBot.define do
  factory :group_group_link do
    shared_group { create(:group) }
    shared_with_group { create(:group) }
    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 } }
  end
end