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/ci_platform_metrics.rb')
-rw-r--r--spec/factories/ci_platform_metrics.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/ci_platform_metrics.rb b/spec/factories/ci_platform_metrics.rb
new file mode 100644
index 00000000000..478f9715021
--- /dev/null
+++ b/spec/factories/ci_platform_metrics.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :ci_platform_metric do
+ recorded_at { Time.zone.now }
+ platform_target { generate(:title) }
+ count { SecureRandom.random_number(100) }
+ end
+end