Commit 3e01fed5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offenses in container repository code

parent 249084b4
...@@ -64,6 +64,6 @@ class ContainerRepository < ActiveRecord::Base ...@@ -64,6 +64,6 @@ class ContainerRepository < ActiveRecord::Base
# in order to maintain backwards compatibility. # in order to maintain backwards compatibility.
# #
Project.find_by_full_path(truncated_path) || Project.find_by_full_path(truncated_path) ||
Project.find_by_full_path(repository_path) Project.find_by_full_path(repository_path)
end end
end end
...@@ -14,12 +14,11 @@ describe ContainerRepository do ...@@ -14,12 +14,11 @@ describe ContainerRepository do
host_port: 'registry.gitlab') host_port: 'registry.gitlab')
stub_request(:get, 'http://registry.gitlab/v2/group/test/my_image/tags/list') stub_request(:get, 'http://registry.gitlab/v2/group/test/my_image/tags/list')
.with(headers: { .with(headers: { 'Accept' => 'application/vnd.docker.distribution.manifest.v2+json' })
'Accept' => 'application/vnd.docker.distribution.manifest.v2+json' })
.to_return( .to_return(
status: 200, status: 200,
body: JSON.dump(tags: ['test_tag']), body: JSON.dump(tags: ['test_tag']),
headers: { 'Content-Type' => 'application/json' }) headers: { 'Content-Type' => 'application/json' })
end end
describe 'associations' do describe 'associations' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment