Fix dev fixtures

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-18 20:19:11 +03:00
parent 4a21db82ec
commit e4bc359841
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -1,7 +1,7 @@
Gitlab::Seeder.quiet do
Group.all.each do |group|
User.all.sample(4).each do |user|
if group.add_users([user.id], UsersGroup.group_access_roles.values.sample)
if group.add_users([user.id], Gitlab::Access.values.sample)
print '.'
else
print 'F'
@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
Project.all.each do |project|
User.all.sample(4).each do |user|
if project.team << [user, UsersProject.access_roles.values.sample]
if project.team << [user, Gitlab::Access.values.sample]
print '.'
else
print 'F'