Specs: Use Runner factory and provide strategy class

This commit is contained in:
Sebastian Serth
2023-10-29 23:16:37 +01:00
committed by Sebastian Serth
parent 8fc5123bae
commit 411eb0b165
2 changed files with 7 additions and 3 deletions

View File

@ -6,5 +6,9 @@ FactoryBot.define do
runner_id { SecureRandom.uuid }
execution_environment factory: :ruby
contributor factory: :external_user
after(:build) do |runner|
runner.strategy = Runner.strategy_class.new(runner.runner_id, runner.execution_environment)
end
end
end