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
1d9949f4
Commit
1d9949f4
authored
Aug 03, 2020
by
Giorgenes Gelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor group package api specs
remove uneeded license context
parent
d9983961
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
92 deletions
+90
-92
spec/requests/api/group_packages_spec.rb
spec/requests/api/group_packages_spec.rb
+90
-92
No files found.
spec/requests/api/group_packages_spec.rb
View file @
1d9949f4
...
@@ -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
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