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

Test to check 404 error when project id not found

parent 12a1f73b
No related branches found
No related tags found
1 merge request!2835Fix API return codes
Loading
Loading
@@ -195,6 +195,11 @@ describe Gitlab::API do
json_response.count.should == 1
json_response.first['email'].should == user.email
end
it "should return a 404 error if id not found" do
get api("/projects/9999/members", user)
response.status.should == 404
end
end
 
describe "GET /projects/:id/members/:user_id" do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment