Add description to issues, projects in development fixtures

This commit is contained in:
Dmitriy Zaporozhets 2013-10-17 12:27:09 +03:00
parent 7b70d81c83
commit 60e2a6563d
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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