Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ef394614
Commit
ef394614
authored
Mar 11, 2020
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated let_it_be vars
parent
1069c45b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ee/spec/requests/api/npm_packages_spec.rb
ee/spec/requests/api/npm_packages_spec.rb
+1
-3
No files found.
ee/spec/requests/api/npm_packages_spec.rb
View file @
ef394614
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment