Commit 5417fbfecdfded18e89e55e56022b666d1a0e13f

Authored by Sebastian Ziebell
1 parent 12a1f73b

Test to check 404 error when project id not found

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
spec/requests/api/projects_spec.rb
... ... @@ -195,6 +195,11 @@ describe Gitlab::API do
195 195 json_response.count.should == 1
196 196 json_response.first['email'].should == user.email
197 197 end
  198 +
  199 + it "should return a 404 error if id not found" do
  200 + get api("/projects/9999/members", user)
  201 + response.status.should == 404
  202 + end
198 203 end
199 204  
200 205 describe "GET /projects/:id/members/:user_id" do
... ...