group_variables.rb 258 Bytes
Newer Older
1
FactoryBot.define do
Shinya Maeda's avatar
Shinya Maeda committed
2 3 4
  factory :ci_group_variable, class: Ci::GroupVariable do
    sequence(:key) { |n| "VARIABLE_#{n}" }
    value 'VARIABLE_VALUE'
5
    masked false
Shinya Maeda's avatar
Shinya Maeda committed
6 7 8 9 10 11 12 13

    trait(:protected) do
      protected true
    end

    group factory: :group
  end
end