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
Boxiang Sun
gitlab-ce
Commits
3e01fed5
Commit
3e01fed5
authored
Mar 23, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offenses in container repository code
parent
249084b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
app/models/container_repository.rb
app/models/container_repository.rb
+1
-1
spec/models/container_repository_spec.rb
spec/models/container_repository_spec.rb
+4
-5
No files found.
app/models/container_repository.rb
View file @
3e01fed5
...
...
@@ -64,6 +64,6 @@ class ContainerRepository < ActiveRecord::Base
# in order to maintain backwards compatibility.
#
Project
.
find_by_full_path
(
truncated_path
)
||
Project
.
find_by_full_path
(
repository_path
)
Project
.
find_by_full_path
(
repository_path
)
end
end
spec/models/container_repository_spec.rb
View file @
3e01fed5
...
...
@@ -14,12 +14,11 @@ describe ContainerRepository do
host_port:
'registry.gitlab'
)
stub_request
(
:get
,
'http://registry.gitlab/v2/group/test/my_image/tags/list'
)
.
with
(
headers:
{
'Accept'
=>
'application/vnd.docker.distribution.manifest.v2+json'
})
.
with
(
headers:
{
'Accept'
=>
'application/vnd.docker.distribution.manifest.v2+json'
})
.
to_return
(
status:
200
,
body:
JSON
.
dump
(
tags:
[
'test_tag'
]),
headers:
{
'Content-Type'
=>
'application/json'
})
status:
200
,
body:
JSON
.
dump
(
tags:
[
'test_tag'
]),
headers:
{
'Content-Type'
=>
'application/json'
})
end
describe
'associations'
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