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

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

11 lines
270 B
Ruby
Raw Permalink Normal View History

2023-03-04 22:38:38 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :ml_candidate_metadata, class: '::Ml::CandidateMetadata' do
association :candidate, factory: :ml_candidates
sequence(:name) { |n| "metadata_#{n}" }
sequence(:value) { |n| "value#{n}" }
end
end