diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-07 06:09:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-07 06:09:23 +0300 |
commit | ce5fc4c88dc46a9ebc1e6bb43de1d262ea56b886 (patch) | |
tree | 548cde5a5c0b87b5c807deb6d80a5de78b076575 /spec/requests/user_sends_malformed_strings_spec.rb | |
parent | b45d30ab76e55c9e2889263c7a29de5a48d6ec56 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/user_sends_malformed_strings_spec.rb')
-rw-r--r-- | spec/requests/user_sends_malformed_strings_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/requests/user_sends_malformed_strings_spec.rb b/spec/requests/user_sends_malformed_strings_spec.rb index da533606be5..b6eda9159bc 100644 --- a/spec/requests/user_sends_malformed_strings_spec.rb +++ b/spec/requests/user_sends_malformed_strings_spec.rb @@ -2,9 +2,7 @@ require 'spec_helper' -RSpec.describe 'User sends malformed strings' do - include GitHttpHelpers - +RSpec.describe 'User sends malformed strings as params' do let(:null_byte) { "\u0000" } let(:invalid_string) { "mal\xC0formed" } @@ -19,10 +17,4 @@ RSpec.describe 'User sends malformed strings' do expect(response).to have_gitlab_http_status(:bad_request) end - - it 'raises a 400 error with null bytes in the auth headers' do - clone_get("project/path", user: "hello#{null_byte}", password: "nothing to see") - - expect(response).to have_gitlab_http_status(:bad_request) - end end |