diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-12 19:05:29 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-12 19:05:29 +0300 |
commit | f8bac850a2473e1249bc0224e7810f02b8145a0d (patch) | |
tree | 60674804cfc60a5c944e4ebfe75d9120c7368813 /spec | |
parent | 6fc43e6f17bcb17f9754c571bf4fadd603abe82b (diff) |
Backports EE change for expanded pipelines
Diffstat (limited to 'spec')
-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 |