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

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

FactoryBot.define do
  factory :deploy_keys_project do
    deploy_key
    project

    trait :write_access do
      can_push { true }
    end

    trait :readonly_access do
      can_push { false }
    end
  end
end