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-06-23 09:08:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-23 09:08:52 +0300
commit817adcd0d02e4ecbfa5e317703f7909384d1b8af (patch)
tree7705622529c5cf54cd75072f7d602b1ca4f077f2 /spec/factories
parent2c505d2a49e04506e30266c05e84d68971f87502 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/usage_data.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/usage_data.rb b/spec/factories/usage_data.rb
index c0c5b1103fe..aa4476f5cec 100644
--- a/spec/factories/usage_data.rb
+++ b/spec/factories/usage_data.rb
@@ -89,6 +89,11 @@ FactoryBot.define do
create(:grafana_integration, project: projects[2], enabled: false)
ProjectFeature.first.update_attribute('repository_access_level', 0)
+
+ # Create fresh & a month (28-days SMAU) old data
+ [2, 29].each do |n|
+ create(:snippet, created_at: n.days.ago)
+ end
end
end
end