Commit 4f670fbe9c83bdf20e1a58d3166848ab6d453b6c
1 parent
f09a1ef8
Exists in
spb-stable
and in
2 other branches
Create seed projects with different visibility
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
db/fixtures/development/04_project.rb
@@ -40,7 +40,8 @@ Gitlab::Seeder.quiet do | @@ -40,7 +40,8 @@ Gitlab::Seeder.quiet do | ||
40 | import_url: url, | 40 | import_url: url, |
41 | namespace_id: group.id, | 41 | namespace_id: group.id, |
42 | name: project_path.titleize, | 42 | name: project_path.titleize, |
43 | - description: Faker::Lorem.sentence | 43 | + description: Faker::Lorem.sentence, |
44 | + visibility_level: Gitlab::VisibilityLevel.values.sample | ||
44 | } | 45 | } |
45 | 46 | ||
46 | project = Projects::CreateService.new(User.first, params).execute | 47 | project = Projects::CreateService.new(User.first, params).execute |