Skip to content
Snippets Groups Projects
Unverified Commit 8ad1573f authored by Douwe Maan's avatar Douwe Maan
Browse files

Make sure hooks run when seeding admin user

parent fb0bb32f
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment