diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /spec/uploaders/favicon_uploader_spec.rb | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'spec/uploaders/favicon_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/favicon_uploader_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/uploaders/favicon_uploader_spec.rb b/spec/uploaders/favicon_uploader_spec.rb index 7f452075293..ab14397c27d 100644 --- a/spec/uploaders/favicon_uploader_spec.rb +++ b/spec/uploaders/favicon_uploader_spec.rb @@ -6,7 +6,7 @@ RSpec.describe FaviconUploader do let_it_be(:model) { build_stubbed(:user) } let_it_be(:uploader) { described_class.new(model, :favicon) } - context 'accept whitelist file content type' do + context 'accept allowlist file content type' do include_context 'ignore extension allowlist check' # We need to feed through a valid path, but we force the parsed mime type @@ -22,7 +22,7 @@ RSpec.describe FaviconUploader do end end - context 'upload non-whitelisted file content type' do + context 'upload denylisted file content type' do include_context 'ignore extension allowlist check' let_it_be(:path) { File.join('spec', 'fixtures', 'sanitized.svg') } @@ -30,7 +30,7 @@ RSpec.describe FaviconUploader do it_behaves_like 'denied carrierwave upload' end - context 'upload misnamed non-whitelisted file content type' do + context 'upload misnamed denylisted file content type' do include_context 'ignore extension allowlist check' let_it_be(:path) { File.join('spec', 'fixtures', 'not_a_png.png') } |