Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
60e2a656
Commit
60e2a656
authored
Oct 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add description to issues, projects in development fixtures
parent
7b70d81c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
db/fixtures/development/04_project.rb
db/fixtures/development/04_project.rb
+3
-1
db/fixtures/development/09_issues.rb
db/fixtures/development/09_issues.rb
+2
-1
No files found.
db/fixtures/development/04_project.rb
View file @
60e2a656
...
@@ -26,6 +26,7 @@ project_urls.each_with_index do |url, i|
...
@@ -26,6 +26,7 @@ project_urls.each_with_index do |url, i|
name:
group_path
.
titleize
,
name:
group_path
.
titleize
,
path:
group_path
path:
group_path
)
)
group
.
description
=
Faker
::
Lorem
.
sentence
group
.
owner
=
User
.
first
group
.
owner
=
User
.
first
group
.
save
group
.
save
end
end
...
@@ -35,7 +36,8 @@ project_urls.each_with_index do |url, i|
...
@@ -35,7 +36,8 @@ project_urls.each_with_index do |url, i|
params
=
{
params
=
{
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
}
}
project
=
Projects
::
CreateContext
.
new
(
User
.
first
,
params
).
execute
project
=
Projects
::
CreateContext
.
new
(
User
.
first
,
params
).
execute
...
...
db/fixtures/development/09_issues.rb
View file @
60e2a656
...
@@ -22,7 +22,8 @@ Gitlab::Seeder.quiet do
...
@@ -22,7 +22,8 @@ Gitlab::Seeder.quiet do
assignee_id:
user_id
,
assignee_id:
user_id
,
state:
[
'opened'
,
'closed'
].
sample
,
state:
[
'opened'
,
'closed'
].
sample
,
milestone:
project
.
milestones
.
sample
,
milestone:
project
.
milestones
.
sample
,
title:
Faker
::
Lorem
.
sentence
(
6
)
title:
Faker
::
Lorem
.
sentence
(
6
),
description:
Faker
::
Lorem
.
sentence
}])
}])
ensure
ensure
Thread
.
current
[
:current_user
]
=
nil
Thread
.
current
[
:current_user
]
=
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment