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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f0de4b53
Commit
f0de4b53
authored
Jun 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix project update specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
ab29ddcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/services/projects/update_service_spec.rb
spec/services/projects/update_service_spec.rb
+8
-8
No files found.
spec/services/projects/update_service_spec.rb
View file @
f0de4b53
...
...
@@ -6,14 +6,14 @@ describe Projects::UpdateService do
@user
=
create
:user
@admin
=
create
:user
,
admin:
true
@project
=
create
:project
,
creator_id:
@user
.
id
,
namespace:
@user
.
namespace
@opts
=
{
project:
{}
}
@opts
=
{}
end
context
'should be private when updated to private'
do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
update_project
(
@project
,
@user
,
@opts
)
end
...
...
@@ -25,7 +25,7 @@ describe Projects::UpdateService do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
update_project
(
@project
,
@user
,
@opts
)
end
...
...
@@ -37,7 +37,7 @@ describe Projects::UpdateService do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
update_project
(
@project
,
@user
,
@opts
)
end
...
...
@@ -56,7 +56,7 @@ describe Projects::UpdateService do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
update_project
(
@project
,
@user
,
@opts
)
end
...
...
@@ -68,7 +68,7 @@ describe Projects::UpdateService do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
update_project
(
@project
,
@user
,
@opts
)
end
...
...
@@ -80,7 +80,7 @@ describe Projects::UpdateService do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
update_project
(
@project
,
@user
,
@opts
)
end
...
...
@@ -92,7 +92,7 @@ describe Projects::UpdateService do
before
do
@created_private
=
@project
.
private?
@opts
[
:project
]
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
@opts
.
merge!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
update_project
(
@project
,
@admin
,
@opts
)
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