Test to check 404 error when project id not found
This commit is contained in:
parent
12a1f73b61
commit
5417fbfecd
1 changed files with 5 additions and 0 deletions
|
@ -195,6 +195,11 @@ describe Gitlab::API do
|
||||||
json_response.count.should == 1
|
json_response.count.should == 1
|
||||||
json_response.first['email'].should == user.email
|
json_response.first['email'].should == user.email
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "should return a 404 error if id not found" do
|
||||||
|
get api("/projects/9999/members", user)
|
||||||
|
response.status.should == 404
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "GET /projects/:id/members/:user_id" do
|
describe "GET /projects/:id/members/:user_id" do
|
||||||
|
|
Loading…
Add table
Reference in a new issue