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
174801d3
Commit
174801d3
authored
Feb 26, 2020
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid potentially existing id, and fix 404 test
parent
7b208ba2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ee/spec/controllers/groups/epic_issues_controller_spec.rb
ee/spec/controllers/groups/epic_issues_controller_spec.rb
+5
-3
No files found.
ee/spec/controllers/groups/epic_issues_controller_spec.rb
View file @
174801d3
...
...
@@ -132,7 +132,7 @@ describe Groups::EpicIssuesController do
end
context
'when user does not have permissions to delete the link'
do
it
'returns status 40
4
'
do
it
'returns status 40
3
'
do
subject
expect
(
response
.
status
).
to
eq
(
403
)
...
...
@@ -167,9 +167,11 @@ describe Groups::EpicIssuesController do
context
'when the epic_issue record does not exists'
do
it
'returns status 404'
do
delete
:destroy
,
params:
{
group_id:
group
,
epic_id:
epic
.
to_param
,
id:
9999
}
group
.
add_developer
(
user
)
expect
(
response
.
status
).
to
eq
(
403
)
delete
:destroy
,
params:
{
group_id:
group
,
epic_id:
epic
.
to_param
,
id:
0
}
expect
(
response
.
status
).
to
eq
(
404
)
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