Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-09 18:08:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-09 18:08:13 +0300
commit0a353a9fa386ad60374daa9bad56f41bb5491c33 (patch)
tree7e51c83535577744e3daccdcd4017069a5d6bb7a /spec/factories
parent0c1344a7c19635e387e6f7af20591ad73f46ddff (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/runners.rb6
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