Skip to content
Snippets Groups Projects
Commit 3e01fed5 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Fix Rubocop offenses in container repository code

parent 249084b4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment