Commit 41e93bbf authored by Sebastian Ziebell's avatar Sebastian Ziebell

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

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment