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

FactoryBot.define do
  factory :ci_group_variable, class: Ci::GroupVariable do
    sequence(:key) { |n| "VARIABLE_#{n}" }
    value 'VARIABLE_VALUE'
    masked false

    trait(:protected) do
      protected true
    end

    group factory: :group
  end
end