Merge branch 'rc/fix-transient-failures-following-no-ffaker' into 'master'

Ensure we generate unique usernames otherwise validations fail

See merge request !10436
This commit is contained in:
Sean McGivern 2017-04-04 09:44:05 +00:00
commit 5f7ebfb9aa
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -3,7 +3,7 @@ require 'spec_helper'
describe API::V3::Members, api: true do
include ApiHelpers
let(:master) { create(:user) }
let(:master) { create(:user, username: 'master_user') }
let(:developer) { create(:user) }
let(:access_requester) { create(:user) }
let(:stranger) { create(:user) }