提交 41e93bbf 编写于 作者: S Sebastian Ziebell

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

上级 f978a71f
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册