Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ml/models.rb')
-rw-r--r--spec/factories/ml/models.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/ml/models.rb b/spec/factories/ml/models.rb
new file mode 100644
index 00000000000..2d1b29289a5
--- /dev/null
+++ b/spec/factories/ml/models.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :ml_models, class: '::Ml::Model' do
+ sequence(:name) { |n| "model#{n}" }
+
+ project
+ default_experiment { association :ml_experiments, project_id: project.id, name: name }
+ end
+end