diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-21 18:07:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-21 18:07:30 +0300 |
commit | f1a1bd96b7dca93886efd2e9cfa881bf4a11c40e (patch) | |
tree | 6fcfb13e777eb8fed7bac1ab58482e91f3265a40 /spec/factories/ci | |
parent | d4c968c95c4b966a58d3fe76c25aeb6e97d84925 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/pending_builds.rb | 9 | ||||
-rw-r--r-- | spec/factories/ci/running_builds.rb | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/spec/factories/ci/pending_builds.rb b/spec/factories/ci/pending_builds.rb new file mode 100644 index 00000000000..3e2544b0ce1 --- /dev/null +++ b/spec/factories/ci/pending_builds.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :ci_pending_build, class: 'Ci::PendingBuild' do + build factory: :ci_build + project + protected { build.protected } + end +end diff --git a/spec/factories/ci/running_builds.rb b/spec/factories/ci/running_builds.rb new file mode 100644 index 00000000000..96d2e6913f4 --- /dev/null +++ b/spec/factories/ci/running_builds.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :ci_running_build, class: 'Ci::RunningBuild' do + build factory: :ci_build + project + runner factory: :ci_runner + runner_type { runner.runner_type } + end +end |