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
1
Merge Requests
1
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-ce
Commits
08de4746
Commit
08de4746
authored
Jan 03, 2018
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring Gitlab::BareRepositoryImport::Repository
parent
3f5403ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/lib/gitlab/bare_repository_import/repository_spec.rb
spec/lib/gitlab/bare_repository_import/repository_spec.rb
+6
-6
No files found.
spec/lib/gitlab/bare_repository_import/repository_spec.rb
View file @
08de4746
...
@@ -24,17 +24,17 @@ describe ::Gitlab::BareRepositoryImport::Repository do
...
@@ -24,17 +24,17 @@ describe ::Gitlab::BareRepositoryImport::Repository do
it
'returns false if it is a wiki'
do
it
'returns false if it is a wiki'
do
subject
=
described_class
.
new
(
'/full/path/'
,
'/full/path/to/a/b/my.wiki.git'
)
subject
=
described_class
.
new
(
'/full/path/'
,
'/full/path/to/a/b/my.wiki.git'
)
expect
(
subject
.
processable?
).
to
eq
(
false
)
expect
(
subject
).
not_to
be_processable
end
end
it
'returns true if group path is missing'
do
it
'returns true if group path is missing'
do
subject
=
described_class
.
new
(
'/full/path/'
,
'/full/path/repo.git'
)
subject
=
described_class
.
new
(
'/full/path/'
,
'/full/path/repo.git'
)
expect
(
subject
.
processable?
).
to
eq
(
true
)
expect
(
subject
).
to
be_processable
end
end
it
'returns true when group path and project name are present'
do
it
'returns true when group path and project name are present'
do
expect
(
subject
.
processable?
).
to
eq
(
true
)
expect
(
subject
).
to
be_processable
end
end
end
end
...
@@ -92,18 +92,18 @@ describe ::Gitlab::BareRepositoryImport::Repository do
...
@@ -92,18 +92,18 @@ describe ::Gitlab::BareRepositoryImport::Repository do
it
'returns false if it is a wiki'
do
it
'returns false if it is a wiki'
do
subject
=
described_class
.
new
(
root_path
,
wiki_path
)
subject
=
described_class
.
new
(
root_path
,
wiki_path
)
expect
(
subject
.
processable?
).
to
eq
(
false
)
expect
(
subject
).
not_to
be_processable
end
end
it
'returns false when group and project name are missing'
do
it
'returns false when group and project name are missing'
do
repository
=
Rugged
::
Repository
.
new
(
repo_path
)
repository
=
Rugged
::
Repository
.
new
(
repo_path
)
repository
.
config
.
delete
(
'gitlab.fullpath'
)
repository
.
config
.
delete
(
'gitlab.fullpath'
)
expect
(
subject
.
processable?
).
to
eq
(
false
)
expect
(
subject
).
not_to
be_processable
end
end
it
'returns true when group path and project name are present'
do
it
'returns true when group path and project name are present'
do
expect
(
subject
.
processable?
).
to
eq
(
true
)
expect
(
subject
).
to
be_processable
end
end
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