diff options
Diffstat (limited to 'spec/factories/ml/model_metadata.rb')
-rw-r--r-- | spec/factories/ml/model_metadata.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/ml/model_metadata.rb b/spec/factories/ml/model_metadata.rb new file mode 100644 index 00000000000..03ceaffa6bc --- /dev/null +++ b/spec/factories/ml/model_metadata.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :ml_model_metadata, class: '::Ml::ModelMetadata' do + association :model, factory: :ml_models + + sequence(:name) { |n| "metadata_#{n}" } + sequence(:value) { |n| "value#{n}" } + end +end |