diff options
Diffstat (limited to 'spec/lib/gitlab/auth/auth_finders_spec.rb')
-rw-r--r-- | spec/lib/gitlab/auth/auth_finders_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/lib/gitlab/auth/auth_finders_spec.rb b/spec/lib/gitlab/auth/auth_finders_spec.rb index 2d4239eb761..b0522e269e0 100644 --- a/spec/lib/gitlab/auth/auth_finders_spec.rb +++ b/spec/lib/gitlab/auth/auth_finders_spec.rb @@ -496,18 +496,6 @@ RSpec.describe Gitlab::Auth::AuthFinders do expect(find_user_from_web_access_token(:archive)).to eq(user) end - context 'when allow_archive_as_web_access_format feature flag is disabled' do - before do - stub_feature_flags(allow_archive_as_web_access_format: false) - end - - it 'returns nil for ARCHIVE requests' do - set_header('SCRIPT_NAME', '/-/archive/main.zip') - - expect(find_user_from_web_access_token(:archive)).to be_nil - end - end - context 'for API requests' do it 'returns the user' do set_header('SCRIPT_NAME', '/api/endpoint') |