diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 00:08:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 00:08:05 +0300 |
commit | abae8f34f377519946a91101ef7abf504454531c (patch) | |
tree | 359fab0082860b6850d4a0a492b8f12eb3d4eb0b /spec/requests/api/container_registry_event_spec.rb | |
parent | 580622bdb3c762a8e89facd8a3946881ee480442 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/container_registry_event_spec.rb')
-rw-r--r-- | spec/requests/api/container_registry_event_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/container_registry_event_spec.rb b/spec/requests/api/container_registry_event_spec.rb index 9c144f80fd4..2cdf2656cb7 100644 --- a/spec/requests/api/container_registry_event_spec.rb +++ b/spec/requests/api/container_registry_event_spec.rb @@ -27,7 +27,7 @@ describe API::ContainerRegistryEvent do expect(event).to have_received(:handle!).once expect(event).to have_received(:track!).once - expect(response.status).to eq 200 + expect(response).to have_gitlab_http_status(:ok) end it 'returns 401 error status when token is invalid' do @@ -35,7 +35,7 @@ describe API::ContainerRegistryEvent do params: { events: events }.to_json, headers: registry_headers.merge('Authorization' => 'invalid_token') - expect(response.status).to eq 401 + expect(response).to have_gitlab_http_status(:unauthorized) end end end |