Commit 1d9949f4 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Refactor group package api specs

remove uneeded license context
parent d9983961
...@@ -13,7 +13,6 @@ RSpec.describe API::GroupPackages do ...@@ -13,7 +13,6 @@ RSpec.describe API::GroupPackages do
let(:url) { "/groups/#{group.id}/packages" } let(:url) { "/groups/#{group.id}/packages" }
let(:package_schema) { 'public_api/v4/packages/group_packages' } let(:package_schema) { 'public_api/v4/packages/group_packages' }
context 'without the need for a license' do
context 'with sorting' do context 'with sorting' do
let_it_be(:package1) { create(:npm_package, project: project, version: '3.1.0', name: "@#{project.root_namespace.path}/foo1") } let_it_be(:package1) { create(:npm_package, project: project, version: '3.1.0', name: "@#{project.root_namespace.path}/foo1") }
let_it_be(:package2) { create(:nuget_package, project: project, version: '2.0.4') } let_it_be(:package2) { create(:nuget_package, project: project, version: '2.0.4') }
...@@ -143,5 +142,4 @@ RSpec.describe API::GroupPackages do ...@@ -143,5 +142,4 @@ RSpec.describe API::GroupPackages do
it_behaves_like 'returning response status', :bad_request it_behaves_like 'returning response status', :bad_request
end 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