diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-25 15:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-25 15:08:48 +0300 |
commit | f7dae0cdcb70ecb71c1d65f099e9d96b27a4548c (patch) | |
tree | e53baffa847c4fd37c8e335e4d93d603c75f9f02 /spec/requests/api/group_export_spec.rb | |
parent | b98fa9ef3d5bead417ae2f325cb64637883264e9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/group_export_spec.rb')
-rw-r--r-- | spec/requests/api/group_export_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/requests/api/group_export_spec.rb b/spec/requests/api/group_export_spec.rb index 6128f2e4a87..47193591cf1 100644 --- a/spec/requests/api/group_export_spec.rb +++ b/spec/requests/api/group_export_spec.rb @@ -44,7 +44,7 @@ describe API::GroupExport do it 'downloads exported group archive' do get api(download_path, user) - expect(response).to have_gitlab_http_status(200) + expect(response).to have_gitlab_http_status(:ok) end context 'when export_file.file does not exist' do @@ -57,7 +57,7 @@ describe API::GroupExport do it 'returns 404' do get api(download_path, user) - expect(response).to have_gitlab_http_status(404) + expect(response).to have_gitlab_http_status(:not_found) end end end @@ -66,7 +66,7 @@ describe API::GroupExport do it 'returns 404' do get api(download_path, user) - expect(response).to have_gitlab_http_status(404) + expect(response).to have_gitlab_http_status(:not_found) end end end @@ -79,7 +79,7 @@ describe API::GroupExport do it 'responds with 404 Not Found' do get api(download_path, user) - expect(response).to have_gitlab_http_status(404) + expect(response).to have_gitlab_http_status(:not_found) end end end @@ -98,7 +98,7 @@ describe API::GroupExport do it 'accepts download' do post api(path, user) - expect(response).to have_gitlab_http_status(202) + expect(response).to have_gitlab_http_status(:accepted) end end @@ -110,7 +110,7 @@ describe API::GroupExport do it 'forbids the request' do post api(path, user) - expect(response).to have_gitlab_http_status(403) + expect(response).to have_gitlab_http_status(:forbidden) end end end @@ -123,7 +123,7 @@ describe API::GroupExport do it 'responds with 404 Not Found' do post api(path, user) - expect(response).to have_gitlab_http_status(404) + expect(response).to have_gitlab_http_status(:not_found) end end end |