diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 21:08:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 21:08:05 +0000 |
commit | abae8f34f377519946a91101ef7abf504454531c (patch) | |
tree | 359fab0082860b6850d4a0a492b8f12eb3d4eb0b /spec/requests/api/avatar_spec.rb | |
parent | 580622bdb3c762a8e89facd8a3946881ee480442 (diff) | |
download | gitlab-ce-abae8f34f377519946a91101ef7abf504454531c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/avatar_spec.rb')
-rw-r--r-- | spec/requests/api/avatar_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/requests/api/avatar_spec.rb b/spec/requests/api/avatar_spec.rb index c8bc7f8a4a2..45e34b7894b 100644 --- a/spec/requests/api/avatar_spec.rb +++ b/spec/requests/api/avatar_spec.rb @@ -17,7 +17,7 @@ describe API::Avatar do it 'returns the avatar url' do get api('/avatar'), params: { email: 'public@example.com' } - expect(response.status).to eq 200 + expect(response).to have_gitlab_http_status(:ok) expect(json_response['avatar_url']).to eql("#{::Settings.gitlab.base_url}#{user.avatar.local_url}") end end @@ -34,7 +34,7 @@ describe API::Avatar do it 'returns the avatar url from Gravatar' do get api('/avatar'), params: { email: 'private@example.com' } - expect(response.status).to eq 200 + expect(response).to have_gitlab_http_status(:ok) expect(json_response['avatar_url']).to eq('https://gravatar') end end @@ -57,7 +57,7 @@ describe API::Avatar do it 'returns the avatar url from Gravatar' do get api('/avatar'), params: { email: 'public@example.com' } - expect(response.status).to eq 200 + expect(response).to have_gitlab_http_status(:ok) expect(json_response['avatar_url']).to eq('https://gravatar') end end @@ -74,7 +74,7 @@ describe API::Avatar do it 'returns the avatar url from Gravatar' do get api('/avatar'), params: { email: 'private@example.com' } - expect(response.status).to eq 200 + expect(response).to have_gitlab_http_status(:ok) expect(json_response['avatar_url']).to eq('https://gravatar') end end @@ -92,7 +92,7 @@ describe API::Avatar do it 'returns the avatar url' do get api('/avatar', user), params: { email: 'public@example.com' } - expect(response.status).to eq 200 + expect(response).to have_gitlab_http_status(:ok) expect(json_response['avatar_url']).to eql("#{::Settings.gitlab.base_url}#{user.avatar.local_url}") end end |