Test added to check creation of note to a non-existent MR via API
This commit is contained in:
parent
f978a71f41
commit
41e93bbfe2
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@ describe Gitlab::API do
|
|||
post api("/projects/#{project.id}/merge_request/#{merge_request.id}/comments", user)
|
||||
response.status.should == 400
|
||||
end
|
||||
|
||||
it "should return 404 if note is attached to non existent merge request" do
|
||||
post api("/projects/#{project.id}/merge_request/111/comments", user), note: "My comment"
|
||||
response.status.should == 404
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue