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
72a3bd55
Commit
72a3bd55
authored
Apr 19, 2020
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rachelfox-master-patch-30050' into 'master'
fix exists to exist See merge request gitlab-org/gitlab!29849
parents
3b744ed1
180d25f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/requests/api/project_milestones_spec.rb
spec/requests/api/project_milestones_spec.rb
+2
-2
No files found.
spec/requests/api/project_milestones_spec.rb
View file @
72a3bd55
...
@@ -24,13 +24,13 @@ describe API::ProjectMilestones do
...
@@ -24,13 +24,13 @@ describe API::ProjectMilestones do
project
.
add_reporter
(
reporter
)
project
.
add_reporter
(
reporter
)
end
end
it
'returns 404 response when the project does not exist
s
'
do
it
'returns 404 response when the project does not exist'
do
delete
api
(
"/projects/0/milestones/
#{
milestone
.
id
}
"
,
user
)
delete
api
(
"/projects/0/milestones/
#{
milestone
.
id
}
"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
end
it
'returns 404 response when the milestone does not exist
s
'
do
it
'returns 404 response when the milestone does not exist'
do
delete
api
(
"/projects/
#{
project
.
id
}
/milestones/0"
,
user
)
delete
api
(
"/projects/
#{
project
.
id
}
/milestones/0"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
...
...
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