Commit 41e93bbfe23b3791d1b440dd3961d4fadfbb8461
1 parent
f978a71f
Exists in
master
and in
4 other branches
Test added to check creation of note to a non-existent MR via API
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
spec/requests/api/merge_requests_spec.rb
... | ... | @@ -92,6 +92,11 @@ describe Gitlab::API do |
92 | 92 | post api("/projects/#{project.id}/merge_request/#{merge_request.id}/comments", user) |
93 | 93 | response.status.should == 400 |
94 | 94 | end |
95 | + | |
96 | + it "should return 404 if note is attached to non existent merge request" do | |
97 | + post api("/projects/#{project.id}/merge_request/111/comments", user), note: "My comment" | |
98 | + response.status.should == 404 | |
99 | + end | |
95 | 100 | end |
96 | 101 | |
97 | 102 | end | ... | ... |