diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-17 12:27:09 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-17 12:27:09 +0300 |
commit | 60e2a6563d3343fde2a4db935ee1da207c847d5e (patch) | |
tree | 2be72948a4871244c693ba751da8c4eae88d648b /db/fixtures | |
parent | 7b70d81c831d3e033993ef571e085bfee28ae590 (diff) | |
download | gitlab-ce-60e2a6563d3343fde2a4db935ee1da207c847d5e.tar.gz |
Add description to issues, projects in development fixtures
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/04_project.rb | 4 | ||||
-rw-r--r-- | db/fixtures/development/09_issues.rb | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/db/fixtures/development/04_project.rb b/db/fixtures/development/04_project.rb index 43178dee25d..6fdb163c27d 100644 --- a/db/fixtures/development/04_project.rb +++ b/db/fixtures/development/04_project.rb @@ -26,6 +26,7 @@ project_urls.each_with_index do |url, i| name: group_path.titleize, path: group_path ) + group.description = Faker::Lorem.sentence group.owner = User.first group.save end @@ -35,7 +36,8 @@ project_urls.each_with_index do |url, i| params = { import_url: url, namespace_id: group.id, - name: project_path.titleize + name: project_path.titleize, + description: Faker::Lorem.sentence } project = Projects::CreateContext.new(User.first, params).execute diff --git a/db/fixtures/development/09_issues.rb b/db/fixtures/development/09_issues.rb index 1535c16939c..85e309b6335 100644 --- a/db/fixtures/development/09_issues.rb +++ b/db/fixtures/development/09_issues.rb @@ -22,7 +22,8 @@ Gitlab::Seeder.quiet do assignee_id: user_id, state: ['opened', 'closed'].sample, milestone: project.milestones.sample, - title: Faker::Lorem.sentence(6) + title: Faker::Lorem.sentence(6), + description: Faker::Lorem.sentence }]) ensure Thread.current[:current_user] = nil |