Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_authorizations.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e4330b37a642f3f7ea7ea6be3db2215acc3870d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

FactoryBot.define do
  factory :project_authorization do
    user
    project
    access_level { Gitlab::Access::REPORTER }
  end

  trait(:guest) { access_level { Gitlab::Access::GUEST } }
  trait(:reporter) { access_level { Gitlab::Access::REPORTER } }
  trait(:developer) { access_level { Gitlab::Access::DEVELOPER } }
  trait(:maintainer) { access_level { Gitlab::Access::MAINTAINER } }
  trait(:owner) { access_level { Gitlab::Access::OWNER } }
end