diff options
Diffstat (limited to 'spec/factories/ml/candidate_params.rb')
-rw-r--r-- | spec/factories/ml/candidate_params.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/ml/candidate_params.rb b/spec/factories/ml/candidate_params.rb new file mode 100644 index 00000000000..73cb0c54089 --- /dev/null +++ b/spec/factories/ml/candidate_params.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :ml_candidate_params, class: '::Ml::CandidateParam' do + association :candidate, factory: :ml_candidates + + sequence(:name) { |n| "metric#{n}" } + sequence(:value) { |n| "value#{n}" } + end +end |