Commit d0811dbb authored by Nick Kipling's avatar Nick Kipling

Changed test to be wrapped in context

parent 25146309
......@@ -95,13 +95,13 @@ describe API::ProjectPackages do
end
end
describe 'filtering on package type' do
context 'filtering on package_type' do
let_it_be(:package1) { create(:conan_package, project: project) }
let_it_be(:package2) { create(:maven_package, project: project) }
let_it_be(:package3) { create(:npm_package, project: project) }
let_it_be(:package4) { create(:nuget_package, project: project) }
context 'package types' do
context 'for each type' do
%w[conan maven npm nuget].each do |package_type|
it "returns #{package_type} packages" do
url = package_filter_url(:type, package_type)
......
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