Commit 5f7cb263 authored by Rémy Coutable's avatar Rémy Coutable

Fix the AbuseReport seeder

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4e351678
require 'factory_girl_rails'
module Db
module Fixtures
class Development
def self.seed
Gitlab::Seeder.quiet do
(AbuseReport.default_per_page + 3).times do
reported_user =
User.create!(
username: FFaker::Internet.user_name,
name: FFaker::Name.name,
email: FFaker::Internet.email,
confirmed_at: DateTime.now,
password: '12345678'
)
(AbuseReport.default_per_page + 3).times do
FactoryGirl.create(:abuse_report)
AbuseReport.create(reporter: User.take, user: reported_user, message: 'User sends spam')
print '.'
end
end
end
end
end
end
Db::Fixtures::Development.seed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment