summaryrefslogtreecommitdiff
path: root/spec/factories/ml/candidate_metrics.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-20 09:40:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-20 09:40:42 +0000
commitee664acb356f8123f4f6b00b73c1e1cf0866c7fb (patch)
treef8479f94a28f66654c6a4f6fb99bad6b4e86a40e /spec/factories/ml/candidate_metrics.rb
parent62f7d5c5b69180e82ae8196b7b429eeffc8e7b4f (diff)
downloadgitlab-ce-15.5.0-rc42.tar.gz
Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42
Diffstat (limited to 'spec/factories/ml/candidate_metrics.rb')
-rw-r--r--spec/factories/ml/candidate_metrics.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/ml/candidate_metrics.rb b/spec/factories/ml/candidate_metrics.rb
new file mode 100644
index 00000000000..28e3974d39f
--- /dev/null
+++ b/spec/factories/ml/candidate_metrics.rb
@@ -0,0 +1,12 @@
+# 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