diff options
author | Nermin Vehabovic <nermin.vehabovic90@gmail.com> | 2019-02-26 23:18:40 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-02-26 23:18:40 +0000 |
commit | f9e38cd39f7bbe4fc9a9e437d745270f01edc68b (patch) | |
tree | ba0a25ebf130324f3d805685360a77a02683f9d4 /spec/requests/api/projects_spec.rb | |
parent | 3ae5e475293b4143ed6af530da0d2ab8d9fba56a (diff) | |
download | gitlab-ce-f9e38cd39f7bbe4fc9a9e437d745270f01edc68b.tar.gz |
Added: Documentation for the API
Added: Specs for the API action
Diffstat (limited to 'spec/requests/api/projects_spec.rb')
-rw-r--r-- | spec/requests/api/projects_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index 792abdb2972..856fe1bbe89 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -778,7 +778,7 @@ describe API::Projects do let!(:public_project) { create(:project, :public, name: 'public_project', creator_id: user4.id, namespace: user4.namespace) } it 'returns error when user not found' do - get api('/users/9999/projects/') + get api('/users/0/projects/') expect(response).to have_gitlab_http_status(404) expect(json_response['message']).to eq('404 User Not Found') @@ -1385,7 +1385,7 @@ describe API::Projects do end it 'fails if forked_from project which does not exist' do - post api("/projects/#{project_fork_target.id}/fork/9999", admin) + post api("/projects/#{project_fork_target.id}/fork/0", admin) expect(response).to have_gitlab_http_status(404) end @@ -1936,7 +1936,7 @@ describe API::Projects do end it 'returns not_found(404) for not existing project' do - get api("/projects/9999999999/languages", user) + get api("/projects/0/languages", user) expect(response).to have_gitlab_http_status(:not_found) end |