API: test checks a 404 error is returned if snippet id not found
This commit is contained in:
parent
7cc4339f71
commit
82bd0904ff
1 changed files with 5 additions and 0 deletions
|
@ -386,6 +386,11 @@ describe Gitlab::API do
|
||||||
response.status.should == 200
|
response.status.should == 200
|
||||||
json_response['title'].should == snippet.title
|
json_response['title'].should == snippet.title
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
describe "POST /projects/:id/snippets" do
|
describe "POST /projects/:id/snippets" do
|
||||||
|
|
Loading…
Reference in a new issue