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
0af4cbc5
Commit
0af4cbc5
authored
Apr 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify container repository build method specs
parent
fd30b3d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/models/container_repository_spec.rb
spec/models/container_repository_spec.rb
+4
-3
No files found.
spec/models/container_repository_spec.rb
View file @
0af4cbc5
...
...
@@ -115,11 +115,12 @@ describe ContainerRepository do
end
describe
'.build_from_path'
do
let
(
:path
)
{
project
.
full_path
+
'/some/image'
}
let
(
:repository_path
)
{
ContainerRegistry
::
Path
.
new
(
path
)
}
let
(
:registry_path
)
do
ContainerRegistry
::
Path
.
new
(
project
.
full_path
+
'/some/image'
)
end
let
(
:repository
)
do
described_class
.
build_from_path
(
ContainerRegistry
::
Path
.
new
(
path
)
)
described_class
.
build_from_path
(
registry_path
)
end
it
'fabricates repository assigned to a correct project'
do
...
...
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