debian-mirror-gitlab/spec/factories/ml/candidate_params.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
262 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# 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