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
064a0774
Commit
064a0774
authored
Jul 25, 2015
by
Robert Speicher
Committed by
Valery Sizov
Jul 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create project services on Project creation
parent
67c45864
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
app/services/projects/create_service.rb
app/services/projects/create_service.rb
+2
-0
spec/services/projects/create_service_spec.rb
spec/services/projects/create_service_spec.rb
+7
-0
No files found.
app/services/projects/create_service.rb
View file @
064a0774
...
@@ -85,6 +85,8 @@ module Projects
...
@@ -85,6 +85,8 @@ module Projects
@project
.
create_wiki
if
@project
.
wiki_enabled?
@project
.
create_wiki
if
@project
.
wiki_enabled?
@project
.
build_missing_services
event_service
.
create_project
(
@project
,
current_user
)
event_service
.
create_project
(
@project
,
current_user
)
system_hook_service
.
execute_hooks_for
(
@project
,
:create
)
system_hook_service
.
execute_hooks_for
(
@project
,
:create
)
...
...
spec/services/projects/create_service_spec.rb
View file @
064a0774
...
@@ -10,6 +10,13 @@ describe Projects::CreateService do
...
@@ -10,6 +10,13 @@ describe Projects::CreateService do
}
}
end
end
it
'creates services on Project creation'
do
project
=
create_project
(
@user
,
@opts
)
project
.
reload
expect
(
project
.
services
).
not_to
be_empty
end
context
'user namespace'
do
context
'user namespace'
do
before
do
before
do
@project
=
create_project
(
@user
,
@opts
)
@project
=
create_project
(
@user
,
@opts
)
...
...
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