Commit d69f0ecf authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix rubocop failures

parent 800a5f8e
...@@ -15,7 +15,7 @@ describe Projects::Registry::TagsController do ...@@ -15,7 +15,7 @@ describe Projects::Registry::TagsController do
describe 'GET index' do describe 'GET index' do
let(:tags) do let(:tags) do
40.times.map { |i| "tag#{i}" } Array.new(40) { |i| "tag#{i}" }
end end
before do before do
...@@ -66,9 +66,9 @@ describe Projects::Registry::TagsController do ...@@ -66,9 +66,9 @@ describe Projects::Registry::TagsController do
def get_tags def get_tags
get :index, namespace_id: project.namespace, get :index, namespace_id: project.namespace,
project_id: project, project_id: project,
repository_id: repository, repository_id: repository,
format: :json format: :json
end end
end end
...@@ -101,10 +101,10 @@ describe Projects::Registry::TagsController do ...@@ -101,10 +101,10 @@ describe Projects::Registry::TagsController do
def destroy_tag(name) def destroy_tag(name)
post :destroy, namespace_id: project.namespace, post :destroy, namespace_id: project.namespace,
project_id: project, project_id: project,
repository_id: repository, repository_id: repository,
id: name, id: name,
format: :json format: :json
end end
end end
end end
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