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

This commit is contained in:
Sebastian Ziebell 2013-02-06 14:59:47 +01:00
parent f978a71f41
commit 41e93bbfe2

View file

@ -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