From 5417fbfecdfded18e89e55e56022b666d1a0e13f Mon Sep 17 00:00:00 2001 From: Sebastian Ziebell Date: Thu, 14 Feb 2013 21:00:05 +0100 Subject: [PATCH] Test to check 404 error when project id not found --- spec/requests/api/projects_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index 96f58dde..486b63e7 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -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