diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 18:08:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 18:08:13 +0300 |
commit | 0a353a9fa386ad60374daa9bad56f41bb5491c33 (patch) | |
tree | 7e51c83535577744e3daccdcd4017069a5d6bb7a /spec/factories | |
parent | 0c1344a7c19635e387e6f7af20591ad73f46ddff (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/runners.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb index 4758986b47c..a9a637b4284 100644 --- a/spec/factories/ci/runners.rb +++ b/spec/factories/ci/runners.rb @@ -66,6 +66,12 @@ FactoryBot.define do end end + trait :with_runner_machine do + after(:build) do |runner, evaluator| + runner.runner_machines << build(:ci_runner_machine, runner: runner) + end + end + trait :inactive do active { false } end |