Fix Rubocop offenses in code related to the registry

This commit is contained in:
Grzegorz Bizon 2017-04-03 15:53:51 +02:00
parent baa00d5424
commit fc5eb31570
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module Projects
#
def ensure_root_container_repository!
ContainerRegistry::Path.new(@project.full_path).tap do |path|
return if path.has_repository?
break if path.has_repository?
ContainerRepository.build_from_path(path).tap do |repository|
repository.save if repository.has_tags?

View File

@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do
let(:container_repository) { create(:container_repository) }
before do
stub_container_registry_tags(repository: :any, tags:['latest'])
stub_container_registry_tags(repository: :any, tags: ['latest'])
stub_container_registry_config(enabled: true)
project.container_repositories << container_repository
end