diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 21:08:37 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 21:08:37 +0000 |
commit | bbaf2bb0438b1c71020d9d216feb528add225a7f (patch) | |
tree | 47409ddbb4994ec78c24503416ab44f129f39ec6 /spec/requests/api/version_spec.rb | |
parent | e9c2bf267862e22c0770cc7b3a1ed97a8b87a7fd (diff) | |
download | gitlab-ce-bbaf2bb0438b1c71020d9d216feb528add225a7f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/version_spec.rb')
-rw-r--r-- | spec/requests/api/version_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/version_spec.rb b/spec/requests/api/version_spec.rb index 7d81170687a..9eb8c03e273 100644 --- a/spec/requests/api/version_spec.rb +++ b/spec/requests/api/version_spec.rb @@ -8,7 +8,7 @@ describe API::Version do it 'returns authentication error' do get api('/version') - expect(response).to have_gitlab_http_status(401) + expect(response).to have_gitlab_http_status(:unauthorized) end end @@ -51,13 +51,13 @@ describe API::Version do it 'returns authorization error' do get api('/version', personal_access_token: personal_access_token) - expect(response).to have_gitlab_http_status(403) + expect(response).to have_gitlab_http_status(:forbidden) end end end def expect_version - expect(response).to have_gitlab_http_status(200) + expect(response).to have_gitlab_http_status(:ok) expect(json_response['version']).to eq(Gitlab::VERSION) expect(json_response['revision']).to eq(Gitlab.revision) end |