diff options
Diffstat (limited to 'spec/requests/lfs_http_spec.rb')
-rw-r--r-- | spec/requests/lfs_http_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/lfs_http_spec.rb b/spec/requests/lfs_http_spec.rb index 62b9ee1d361..0e02c0f001b 100644 --- a/spec/requests/lfs_http_spec.rb +++ b/spec/requests/lfs_http_spec.rb @@ -227,7 +227,7 @@ describe 'Git LFS API and storage' do end it 'responds with redirect' do - expect(response).to have_gitlab_http_status(302) + expect(response).to have_gitlab_http_status(:found) end it 'responds with the file location' do @@ -1011,7 +1011,7 @@ describe 'Git LFS API and storage' do it 'responds with status 403' do subject - expect(response).to have_gitlab_http_status(403) + expect(response).to have_gitlab_http_status(:forbidden) end end end @@ -1027,7 +1027,7 @@ describe 'Git LFS API and storage' do it 'responds with status 200' do subject - expect(response).to have_gitlab_http_status(200) + expect(response).to have_gitlab_http_status(:ok) object = LfsObject.find_by_oid(sample_oid) expect(object).to be_present @@ -1070,7 +1070,7 @@ describe 'Git LFS API and storage' do it 'rejects slashes in the tempfile name (path traversal)' do put_finalize('../bar', with_tempfile: true) - expect(response).to have_gitlab_http_status(403) + expect(response).to have_gitlab_http_status(:forbidden) end end end |