summaryrefslogtreecommitdiff
path: root/spec/factories/ci/group_variables.rb
blob: 217f05a088e035bd5b11c15a29433ce48d34033a (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
      add_attribute(:protected) { true }
    end

    group factory: :group
  end
end