diff options
Diffstat (limited to 'spec/factories/ml/candidate_metrics.rb')
-rw-r--r-- | spec/factories/ml/candidate_metrics.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/ml/candidate_metrics.rb b/spec/factories/ml/candidate_metrics.rb new file mode 100644 index 00000000000..28e3974d39f --- /dev/null +++ b/spec/factories/ml/candidate_metrics.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :ml_candidate_metrics, class: '::Ml::CandidateMetric' do + association :candidate, factory: :ml_candidates + + sequence(:name) { |n| "metric#{n}" } + value { 2.0 } + step { 1 } + tracked_at { 1234 } + end +end |