Commit 82bd0904 authored by Sebastian Ziebell's avatar Sebastian Ziebell

API: test checks a 404 error is returned if snippet id not found

parent 7cc4339f
......@@ -386,6 +386,11 @@ describe Gitlab::API do
response.status.should == 200
json_response['title'].should == snippet.title
end
it "should return a 404 error if snippet id not found" do
get api("/projects/#{project.id}/snippets/1234", user)
response.status.should == 404
end
end
describe "POST /projects/:id/snippets" do
......
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