Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
nexedi
gitlab-shell
Commits
d8e061d7
Commit
d8e061d7
authored
Apr 16, 2013
by
Angus MacArthur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve tests for forking from namespaces
Change-Id: I0c343c03ee3f033641f9958030ac57d92296547d
parent
2b54f057
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/gitlab_projects_spec.rb
spec/gitlab_projects_spec.rb
+5
-5
No files found.
spec/gitlab_projects_spec.rb
View file @
d8e061d7
...
...
@@ -78,13 +78,13 @@ describe GitlabProjects do
end
describe
:fork_project
do
let
(
:gl_project_import
)
{
build_gitlab_projects
(
'import-project'
,
repo_name
,
'https://github.com/randx/six.git'
)
}
let
(
:gl_projects_fork
)
{
build_gitlab_projects
(
'fork-project'
,
repo_name
,
'forked-to-namespace'
)}
let
(
:source_repo_name
)
{
File
.
join
(
'source-namespace'
,
repo_name
)
}
let
(
:dest_repo
)
{
File
.
join
(
tmp_repos_path
,
'forked-to-namespace'
,
repo_name
)
}
let
(
:gl_projects_fork
)
{
build_gitlab_projects
(
'fork-project'
,
source_repo_name
,
'forked-to-namespace'
)
}
let
(
:gl_projects_import
)
{
build_gitlab_projects
(
'import-project'
,
source_repo_name
,
'https://github.com/randx/six.git'
)
}
before
do
FileUtils
.
mkdir_p
(
tmp_repo_path
)
gl_project_import
.
exec
gl_projects_import
.
exec
end
it
"should not fork into a namespace that doesn't exist"
do
...
...
@@ -118,7 +118,7 @@ describe GitlabProjects do
argv
(
*
args
)
gl_projects
=
GitlabProjects
.
new
gl_projects
.
stub
(
repos_path:
tmp_repos_path
)
gl_projects
.
stub
(
full_path:
tmp_repo_path
)
gl_projects
.
stub
(
full_path:
File
.
join
(
tmp_repos_path
,
gl_projects
.
project_name
)
)
gl_projects
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