Skip to content
Snippets Groups Projects
Commit 41e93bbf authored by Sebastian Ziebell's avatar Sebastian Ziebell
Browse files

Test added to check creation of note to a non-existent MR via API

parent f978a71f
No related branches found
No related tags found
Loading
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment