diff options
Diffstat (limited to 'spec/factories/ml/candidates.rb')
-rw-r--r-- | spec/factories/ml/candidates.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/ml/candidates.rb b/spec/factories/ml/candidates.rb index 4fbcdc46103..2daed36d777 100644 --- a/spec/factories/ml/candidates.rb +++ b/spec/factories/ml/candidates.rb @@ -10,5 +10,11 @@ FactoryBot.define do candidate.params = FactoryBot.create_list(:ml_candidate_params, 2, candidate: candidate ) end end + + trait :with_metadata do + after(:create) do |candidate| + candidate.metadata = FactoryBot.create_list(:ml_candidate_metadata, 2, candidate: candidate ) + end + end end end |