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
Kazuhiko Shiozaki
gitlab-ce
Commits
29cbb2f0
Commit
29cbb2f0
authored
Jul 02, 2015
by
Douwe Maan
Committed by
Robert Speicher
Jul 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update specs.
parent
b9305369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/services/projects/transfer_service_spec.rb
spec/services/projects/transfer_service_spec.rb
+5
-5
No files found.
spec/services/projects/transfer_service_spec.rb
View file @
29cbb2f0
...
...
@@ -8,7 +8,7 @@ describe Projects::TransferService do
context
'namespace -> namespace'
do
before
do
group
.
add_owner
(
user
)
@result
=
transfer_project
(
project
,
user
,
new_namespace_id:
group
.
id
)
@result
=
transfer_project
(
project
,
user
,
group
)
end
it
{
expect
(
@result
).
to
be_truthy
}
...
...
@@ -17,7 +17,7 @@ describe Projects::TransferService do
context
'namespace -> no namespace'
do
before
do
@result
=
transfer_project
(
project
,
user
,
n
ew_namespace_id:
n
il
)
@result
=
transfer_project
(
project
,
user
,
nil
)
end
it
{
expect
(
@result
).
to
eq
false
}
...
...
@@ -26,14 +26,14 @@ describe Projects::TransferService do
context
'namespace -> not allowed namespace'
do
before
do
@result
=
transfer_project
(
project
,
user
,
new_namespace_id:
group
.
id
)
@result
=
transfer_project
(
project
,
user
,
group
)
end
it
{
expect
(
@result
).
to
eq
false
}
it
{
expect
(
project
.
namespace
).
to
eq
(
user
.
namespace
)
}
end
def
transfer_project
(
project
,
user
,
params
)
Projects
::
TransferService
.
new
(
project
,
user
,
params
).
execute
def
transfer_project
(
project
,
user
,
new_namespace
)
Projects
::
TransferService
.
new
(
project
,
user
).
execute
(
new_namespace
)
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