summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-23 14:57:33 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-23 14:57:33 +0100
commit3e01fed5cb36962065f5d19ab6a0cef1dfc14b48 (patch)
tree555b5d6f039551695d5cb4622d2ffa349b88839d
parent249084b48a86a99c02eefe45b507ebcdf811c20f (diff)
downloadgitlab-ce-3e01fed5cb36962065f5d19ab6a0cef1dfc14b48.tar.gz
Fix Rubocop offenses in container repository code
-rw-r--r--app/models/container_repository.rb2
-rw-r--r--spec/models/container_repository_spec.rb9
2 files changed, 5 insertions, 6 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb
index b3a8ec691de..2f0fd3014a8 100644
--- a/app/models/container_repository.rb
+++ b/app/models/container_repository.rb
@@ -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
diff --git a/spec/models/container_repository_spec.rb b/spec/models/container_repository_spec.rb
index 3997c4ca682..e3180e01758 100644
--- a/spec/models/container_repository_spec.rb
+++ b/spec/models/container_repository_spec.rb
@@ -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