Ensure the AbuseReport fixtures create unique reported users

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-04-03 18:51:29 +02:00
parent 58fe40fbd3
commit 5388bb1cca

View file

@ -7,7 +7,7 @@ module Db
(::AbuseReport.default_per_page + 3).times do (::AbuseReport.default_per_page + 3).times do
reported_user = reported_user =
::User.create!( ::User.create!(
username: FFaker::Internet.user_name, username: "#{FFaker::Internet.user_name}-reported",
name: FFaker::Name.name, name: FFaker::Name.name,
email: FFaker::Internet.email, email: FFaker::Internet.email,
confirmed_at: DateTime.now, confirmed_at: DateTime.now,