Specs: Use Runner factory and provide strategy class
This commit is contained in:

committed by
Sebastian Serth

parent
8fc5123bae
commit
411eb0b165
@ -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
|
||||
|
Reference in New Issue
Block a user