2019-07-29 07:43:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2020-01-09 18:07:52 +00:00
|
|
|
factory :ci_job_variable, class: 'Ci::JobVariable' do
|
2019-07-29 07:43:10 +00:00
|
|
|
sequence(:key) { |n| "VARIABLE_#{n}" }
|
2019-10-02 00:06:26 +00:00
|
|
|
value { 'VARIABLE_VALUE' }
|
2019-07-29 07:43:10 +00:00
|
|
|
|
|
|
|
job factory: :ci_build
|
2020-03-13 21:09:38 +00:00
|
|
|
|
|
|
|
trait :dotenv_source do
|
|
|
|
source { :dotenv }
|
|
|
|
end
|
2019-07-29 07:43:10 +00:00
|
|
|
end
|
|
|
|
end
|