summaryrefslogtreecommitdiff
path: root/db/fixtures/development/05_users.rb
blob: 101ff3a12099b471ea890888a557e8709260f59e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require './spec/support/sidekiq'

Gitlab::Seeder.quiet do
  20.times do |i|
    begin
      User.create!(
        username: FFaker::Internet.user_name,
        name: FFaker::Name.name,
        email: FFaker::Internet.email,
        confirmed_at: DateTime.now,
        password: '12345678'
      )

      print '.'
    rescue ActiveRecord::RecordInvalid
      print 'F'
    end
  end

  5.times do |i|
    begin
      User.create!(
        username: "user#{i}",
        name: "User #{i}",
        email: "user#{i}@example.com",
        confirmed_at: DateTime.now,
        password: '12345678'
      )
      print '.'
    rescue ActiveRecord::RecordInvalid
      print 'F'
    end
  end
end