Commit 5417fbfecdfded18e89e55e56022b666d1a0e13f
1 parent
12a1f73b
Exists in
master
and in
4 other branches
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,6 +195,11 @@ describe Gitlab::API do | ||
195 | json_response.count.should == 1 | 195 | json_response.count.should == 1 |
196 | json_response.first['email'].should == user.email | 196 | json_response.first['email'].should == user.email |
197 | end | 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 | end | 203 | end |
199 | 204 | ||
200 | describe "GET /projects/:id/members/:user_id" do | 205 | describe "GET /projects/:id/members/:user_id" do |