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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
b5db9562
Commit
b5db9562
authored
Feb 14, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add description, visibility to CreateFromTemplateService spec
parent
84e7654c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
changelogs/unreleased/fix-template-project-visibility.yml
changelogs/unreleased/fix-template-project-visibility.yml
+5
-0
spec/services/projects/create_from_template_service_spec.rb
spec/services/projects/create_from_template_service_spec.rb
+6
-2
No files found.
changelogs/unreleased/fix-template-project-visibility.yml
0 → 100644
View file @
b5db9562
---
title
:
Respect description and visibility when creating project from template
merge_request
:
16820
author
:
George Tsiolis
type
:
fixed
spec/services/projects/create_from_template_service_spec.rb
View file @
b5db9562
...
...
@@ -4,8 +4,10 @@ describe Projects::CreateFromTemplateService do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project_params
)
do
{
path:
user
.
to_param
,
template_name:
'rails'
path:
user
.
to_param
,
template_name:
'rails'
,
description:
'project description'
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
}
end
...
...
@@ -22,5 +24,7 @@ describe Projects::CreateFromTemplateService do
expect
(
project
).
to
be_saved
expect
(
project
.
scheduled?
).
to
be
(
true
)
expect
(
project
.
description
).
to
match
(
'project description'
)
expect
(
project
.
visibility_level
).
to
eq
(
Gitlab
::
VisibilityLevel
::
PRIVATE
)
end
end
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