diff options
Diffstat (limited to 'spec/factories/ml/experiments.rb')
-rw-r--r-- | spec/factories/ml/experiments.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/ml/experiments.rb b/spec/factories/ml/experiments.rb index 0acb4c5c5fc..419a530bdcc 100644 --- a/spec/factories/ml/experiments.rb +++ b/spec/factories/ml/experiments.rb @@ -11,5 +11,13 @@ FactoryBot.define do e.metadata = FactoryBot.create_list(:ml_experiment_metadata, 2, experiment: e) # rubocop:disable StrategyInCallback end end + + trait :with_candidates do + candidates do + Array.new(2) do + association(:ml_candidates, project: project) + end + end + end end end |