diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-03 10:33:09 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-03 10:33:09 +0300 |
commit | d69f0ecfd9d717ed94af0c5a748c3877c9766de9 (patch) | |
tree | f8bf2e0b6b330167b038d12a63bd0534add77e22 /spec/controllers/projects | |
parent | 800a5f8ee9a73476a75ff04af2180e294db3a32d (diff) |
Fix rubocop failures
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/registry/tags_controller_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
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 |