gitlab-org--gitlab-foss/spec/factories/ci/variables.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
325 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :ci_variable, class: 'Ci::Variable' do
2016-01-13 18:57:23 +00:00
sequence(:key) { |n| "VARIABLE_#{n}" }
value { 'VARIABLE_VALUE' }
masked { false }
variable_type { :env_var }
trait(:protected) do
add_attribute(:protected) { true }
end
project
end
end