Create seed projects with different visibility

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-05-05 14:30:50 +03:00
parent f09a1ef81d
commit 4f670fbe9c
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -40,7 +40,8 @@ Gitlab::Seeder.quiet do
import_url: url, import_url: url,
namespace_id: group.id, namespace_id: group.id,
name: project_path.titleize, name: project_path.titleize,
description: Faker::Lorem.sentence description: Faker::Lorem.sentence,
visibility_level: Gitlab::VisibilityLevel.values.sample
} }
project = Projects::CreateService.new(User.first, params).execute project = Projects::CreateService.new(User.first, params).execute