Commit 60e2a6563d3343fde2a4db935ee1da207c847d5e
1 parent
7b70d81c
Exists in
master
and in
4 other branches
Add description to issues, projects in development fixtures
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
db/fixtures/development/04_project.rb
... | ... | @@ -26,6 +26,7 @@ project_urls.each_with_index do |url, i| |
26 | 26 | name: group_path.titleize, |
27 | 27 | path: group_path |
28 | 28 | ) |
29 | + group.description = Faker::Lorem.sentence | |
29 | 30 | group.owner = User.first |
30 | 31 | group.save |
31 | 32 | end |
... | ... | @@ -35,7 +36,8 @@ project_urls.each_with_index do |url, i| |
35 | 36 | params = { |
36 | 37 | import_url: url, |
37 | 38 | namespace_id: group.id, |
38 | - name: project_path.titleize | |
39 | + name: project_path.titleize, | |
40 | + description: Faker::Lorem.sentence | |
39 | 41 | } |
40 | 42 | |
41 | 43 | project = Projects::CreateContext.new(User.first, params).execute | ... | ... |
db/fixtures/development/09_issues.rb
... | ... | @@ -22,7 +22,8 @@ Gitlab::Seeder.quiet do |
22 | 22 | assignee_id: user_id, |
23 | 23 | state: ['opened', 'closed'].sample, |
24 | 24 | milestone: project.milestones.sample, |
25 | - title: Faker::Lorem.sentence(6) | |
25 | + title: Faker::Lorem.sentence(6), | |
26 | + description: Faker::Lorem.sentence | |
26 | 27 | }]) |
27 | 28 | ensure |
28 | 29 | Thread.current[:current_user] = nil | ... | ... |