diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-12 16:05:29 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-12 16:05:29 +0000 |
commit | f8bac850a2473e1249bc0224e7810f02b8145a0d (patch) | |
tree | 60674804cfc60a5c944e4ebfe75d9120c7368813 /spec/factories | |
parent | 6fc43e6f17bcb17f9754c571bf4fadd603abe82b (diff) | |
download | gitlab-ce-f8bac850a2473e1249bc0224e7810f02b8145a0d.tar.gz |
Backports EE change for expanded pipelines
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/pipelines.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/ci/pipelines.rb b/spec/factories/ci/pipelines.rb index 8a44ce52849..ee5d27355f1 100644 --- a/spec/factories/ci/pipelines.rb +++ b/spec/factories/ci/pipelines.rb @@ -82,6 +82,12 @@ FactoryBot.define do end end + trait :with_job do + after(:build) do |pipeline, evaluator| + pipeline.builds << build(:ci_build, pipeline: pipeline, project: pipeline.project) + end + end + trait :auto_devops_source do config_source { Ci::Pipeline.config_sources[:auto_devops_source] } end |