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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-27 21:10:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-27 21:10:29 +0300
commitda50206243972a4cafcaea7539aed7c6986c775e (patch)
tree4078741032de093f8ae49a13ec984271402f2f35 /spec/factories/ci_platform_metrics.rb
parenteef9c80f1c3e81fcb50c51d8f419ab095d4747fd (diff)
Add latest changes from gitlab-org/gitlab@master
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