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
Jérome Perrin
gitlab-ce
Commits
5c92c4dd
Commit
5c92c4dd
authored
Apr 19, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve container registry repository path specs
parent
f6a11d00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
spec/lib/container_registry/path_spec.rb
spec/lib/container_registry/path_spec.rb
+4
-15
No files found.
spec/lib/container_registry/path_spec.rb
View file @
5c92c4dd
...
...
@@ -191,13 +191,8 @@ describe ContainerRegistry::Path do
context
'when project exists'
do
let
(
:group
)
{
create
(
:group
,
path:
'Some_Group'
)
}
let
(
:project
)
do
create
(
:empty_project
,
group:
group
,
name:
'some_project'
)
end
before
do
allow
(
path
).
to
receive
(
:repository_project
)
.
and_return
(
project
)
create
(
:empty_project
,
group:
group
,
name:
'some_project'
)
end
context
'when project path equal repository path'
do
...
...
@@ -236,21 +231,15 @@ describe ContainerRegistry::Path do
end
context
'when project with uppercase characters in path exists'
do
let
(
:path
)
{
'somegroup/someproject'
}
let
(
:path
)
{
'somegroup/myproject/my/image'
}
let
(
:group
)
{
create
(
:group
,
path:
'SomeGroup'
)
}
let
(
:project
)
do
create
(
:empty_project
,
group:
group
,
name:
'SomeProject'
)
end
before
do
allow
(
path
).
to
receive
(
:repository_project
)
.
and_return
(
project
)
create
(
:empty_project
,
group:
group
,
name:
'MyProject'
)
end
it
'returns downcased project path'
do
expect
(
subject
.
project_path
).
to
eq
'somegroup/
some
project'
expect
(
subject
.
project_path
).
to
eq
'somegroup/
my
project'
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