diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-01 09:02:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-01 09:02:58 +0000 |
commit | 23330db102f66781cc9a22cd006433cfcbd13863 (patch) | |
tree | 7c1630c6373a1c4d156eeb7f8bc4010c9a280d11 /spec/requests | |
parent | 8d628223c41aabc9d42af95cce1193becffa1b0f (diff) | |
download | gitlab-ce-23330db102f66781cc9a22cd006433cfcbd13863.tar.gz |
Add latest changes from gitlab-org/security/gitlab@13-8-stable-ee
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/git_http_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb index bc89dc2fa77..1ee3e36be8b 100644 --- a/spec/requests/git_http_spec.rb +++ b/spec/requests/git_http_spec.rb @@ -159,13 +159,17 @@ RSpec.describe 'Git HTTP requests' do context "POST git-upload-pack" do it "fails to find a route" do - expect { clone_post(repository_path) }.to raise_error(ActionController::RoutingError) + clone_post(repository_path) do |response| + expect(response).to have_gitlab_http_status(:not_found) + end end end context "POST git-receive-pack" do it "fails to find a route" do - expect { push_post(repository_path) }.to raise_error(ActionController::RoutingError) + push_post(repository_path) do |response| + expect(response).to have_gitlab_http_status(:not_found) + end end end end |