Make sure hooks run when seeding admin user

This commit is contained in:
Douwe Maan 2018-04-10 15:00:06 +02:00
parent fb0bb32f25
commit 8ad1573f85
No known key found for this signature in database
GPG Key ID: 5976703F65143D36
1 changed files with 10 additions and 10 deletions

View File

@ -1,14 +1,14 @@
require './spec/support/sidekiq'
Gitlab::Seeder.quiet do
User.seed do |s|
s.id = 1
s.name = 'Administrator'
s.email = 'admin@example.com'
s.notification_email = 'admin@example.com'
s.username = 'root'
s.password = '5iveL!fe'
s.admin = true
s.confirmed_at = DateTime.now
end
User.create!(
name: 'Administrator',
email: 'admin@example.com',
username: 'root',
password: '5iveL!fe',
admin: true,
confirmed_at: DateTime.now
)
print '.'
end