return 404 if project not found
This commit is contained in:
parent
f7dd067490
commit
cb32e0320a
2 changed files with 13 additions and 2 deletions
|
@ -36,6 +36,12 @@ describe Gitlab::API do
|
|||
response.status.should == 200
|
||||
json_response['name'].should == project.name
|
||||
end
|
||||
|
||||
it "should return a 404 error if not found" do
|
||||
get "#{api_prefix}/projects/42?private_token=#{user.private_token}"
|
||||
response.status.should == 404
|
||||
json_response['message'].should == '404 Not found'
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET /projects/:id/repository/branches" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue