Commit 1fb2de06 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Minor improvements to packages UI code

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8e4bca45
......@@ -311,7 +311,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
get 'archive/*id', constraints: { format: Gitlab::PathRegex.archive_formats_regex, id: /.+?/ }, to: 'repositories#archive', as: 'archive'
## EE-specific
resources :packages, only: [:index, :show, :destroy], module: 'packages'
resources :packages, only: [:index, :show, :destroy], module: :packages
## EE-specific
resources :jobs, only: [:index, :show], constraints: { id: /\d+/ } do
......
......@@ -2,7 +2,7 @@
> **Notes:**
- [Introduced][ee-5811] in GitLab 11.3.
- This document is about the admin guide. To learn how to use GitLab Maven
- This document is about the admin guide. Learn how to use GitLab Maven
repository from [user documentation](../user/project/maven_packages.md).
When enabled, every project in GitLab will have its own space to store Maven packages.
......@@ -11,7 +11,7 @@ When enabled, every project in GitLab will have its own space to store Maven pac
**Omnibus GitLab installations**
# TODO
# TODO: Update this section once https://gitlab.com/gitlab-org/gitlab-ee/issues/7253 is resolved
**Installations from source**
......
......@@ -3,7 +3,6 @@ require 'spec_helper'
describe 'Packages' do
let(:user) { create(:user) }
let(:project) { create(:project) }
let(:package) { create(:maven_package, project: project) }
before do
sign_in(user)
......@@ -19,6 +18,8 @@ describe 'Packages' do
end
context 'when there are packages' do
let!(:package) { create(:maven_package, project: project) }
before do
package
......
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