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

projects.rb « factories « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69eefe1212918f881288d370db1419a314240089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module QA
  FactoryBot.define do
    # https://docs.gitlab.com/ee/api/projects.html
    factory :project, class: 'QA::Resource::Project' do
      trait :private do
        visibility { 'private' }
      end

      trait :with_readme do
        initialize_with_readme { true }
      end

      trait :auto_devops do
        auto_devops_enabled { true }
      end
    end
  end
end