gitlab-org--gitlab-foss/spec/factories/ml/candidate_metrics.rb

12 lines
280 B
Ruby

# 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