summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 06:09:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 06:09:25 +0000
commit3d064c737e8448880e6180aeddc59000a01aa6a8 (patch)
treec97dcfe02e48426f96865068ffe8dcdd17bb1a96 /spec/controllers
parent7ba5b9babaa5802c39e686c57cbf4a3f4725c4b0 (diff)
downloadgitlab-ce-3d064c737e8448880e6180aeddc59000a01aa6a8.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/repositories/git_http_controller_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/controllers/repositories/git_http_controller_spec.rb b/spec/controllers/repositories/git_http_controller_spec.rb
index de14384eb6f..e565c757f95 100644
--- a/spec/controllers/repositories/git_http_controller_spec.rb
+++ b/spec/controllers/repositories/git_http_controller_spec.rb
@@ -145,13 +145,13 @@ describe Repositories::GitHttpController do
describe 'GET #info_refs' do
let(:params) { container_params.merge(service: 'git-upload-pack') }
- it 'returns 404' do
+ it 'returns 403' do
expect(controller).not_to receive(:access_check)
get :info_refs, params: params
- expect(response).to have_gitlab_http_status(:not_found)
- expect(response.body).to eq "The project you were looking for could not be found."
+ expect(response).to have_gitlab_http_status(:forbidden)
+ expect(response.body).to eq 'Snippet git access is disabled.'
end
end
@@ -162,13 +162,13 @@ describe Repositories::GitHttpController do
allow(controller).to receive(:access_check).and_return(nil)
end
- it 'returns 404' do
+ it 'returns 403' do
expect(controller).not_to receive(:access_check)
post :git_upload_pack, params: params
- expect(response).to have_gitlab_http_status(:not_found)
- expect(response.body).to eq "The project you were looking for could not be found."
+ expect(response).to have_gitlab_http_status(:forbidden)
+ expect(response.body).to eq 'Snippet git access is disabled.'
end
end
end