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:
authorRémy Coutable <remy@rymai.me>2017-04-04 09:48:49 +0300
committerRémy Coutable <remy@rymai.me>2017-04-04 09:48:49 +0300
commitd7e3fadb42e00f680034a70735bcea21b9f74dca (patch)
treea3b99edb7f5e9a4872f39548bfa1ba03f0c52070 /db/fixtures
parentfa65b65b0f5e7095e2ec7c4ca0c269a4fe4baab1 (diff)
Ensure we generate unique usernames otherwise validations fail
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/18_abuse_reports.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/18_abuse_reports.rb b/db/fixtures/development/18_abuse_reports.rb
index a3d33706d8e..88d2f784852 100644
--- a/db/fixtures/development/18_abuse_reports.rb
+++ b/db/fixtures/development/18_abuse_reports.rb
@@ -4,10 +4,10 @@ module Db
class AbuseReport
def self.seed
Gitlab::Seeder.quiet do
- (::AbuseReport.default_per_page + 3).times do
+ (::AbuseReport.default_per_page + 3).times do |i|
reported_user =
::User.create!(
- username: "#{FFaker::Internet.user_name}-reported",
+ username: "reported_user_#{i}",
name: FFaker::Name.name,
email: FFaker::Internet.email,
confirmed_at: DateTime.now,