Commit ef394614 authored by David Fernandez's avatar David Fernandez

Remove duplicated let_it_be vars

parent 1069c45b
......@@ -6,7 +6,7 @@ describe API::NpmPackages do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project, reload: true) { create(:project, :public, namespace: group) }
let_it_be(:package) { create(:npm_package, project: project) }
let_it_be(:package, reload: true) { create(:npm_package, project: project) }
let_it_be(:token) { create(:oauth_access_token, scopes: 'api', resource_owner: user) }
let_it_be(:personal_access_token) { create(:personal_access_token, user: user) }
let_it_be(:job) { create(:ci_build, user: user) }
......@@ -455,7 +455,6 @@ describe API::NpmPackages do
end
describe 'PUT /api/v4/packages/npm/-/package/*package_name/dist-tags/:tag' do
let_it_be(:package, reload: true) { create(:npm_package, project: project) }
let_it_be(:tag_name) { 'test' }
let(:package_name) { package.name }
......@@ -514,7 +513,6 @@ describe API::NpmPackages do
end
describe 'DELETE /api/v4/packages/npm/-/package/*package_name/dist-tags/:tag' do
let_it_be(:package, reload: true) { create(:npm_package, project: project) }
let_it_be(:package_tag) { create(:packages_tag, package: package) }
let(:package_name) { package.name }
......
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