Add tests for the different runner errors
This commit is contained in:

committed by
Sebastian Serth

parent
d5b274c9f2
commit
0978a3be83
11
spec/factories/runner.rb
Normal file
11
spec/factories/runner.rb
Normal file
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This factory does not request the runner management as the id is already provided.
|
||||
FactoryBot.define do
|
||||
factory :runner do
|
||||
runner_id { 'test-runner-id' }
|
||||
association :execution_environment, factory: :ruby
|
||||
association :user, factory: :external_user
|
||||
waiting_time { 1.0 }
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user