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

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

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