BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
88aed409
Commit
88aed409
authored
Jul 25, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create project services on Project creation
parent
d92668a0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
create_service.rb
app/services/projects/create_service.rb
+2
-0
create_service_spec.rb
spec/services/projects/create_service_spec.rb
+7
-0
No files found.
app/services/projects/create_service.rb
View file @
88aed409
...
@@ -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 @
88aed409
...
@@ -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