From d69f0ecfd9d717ed94af0c5a748c3877c9766de9 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 3 Oct 2017 09:33:09 +0200 Subject: Fix rubocop failures --- .../projects/registry/tags_controller_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'spec') diff --git a/spec/controllers/projects/registry/tags_controller_spec.rb b/spec/controllers/projects/registry/tags_controller_spec.rb index 519bfea5211..6c8889c07f8 100644 --- a/spec/controllers/projects/registry/tags_controller_spec.rb +++ b/spec/controllers/projects/registry/tags_controller_spec.rb @@ -15,7 +15,7 @@ describe Projects::Registry::TagsController do describe 'GET index' do let(:tags) do - 40.times.map { |i| "tag#{i}" } + Array.new(40) { |i| "tag#{i}" } end before do @@ -66,9 +66,9 @@ describe Projects::Registry::TagsController do def get_tags get :index, namespace_id: project.namespace, - project_id: project, - repository_id: repository, - format: :json + project_id: project, + repository_id: repository, + format: :json end end @@ -101,10 +101,10 @@ describe Projects::Registry::TagsController do def destroy_tag(name) post :destroy, namespace_id: project.namespace, - project_id: project, - repository_id: repository, - id: name, - format: :json + project_id: project, + repository_id: repository, + id: name, + format: :json end end end -- cgit v1.2.1