diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-05 12:12:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-05 12:12:06 +0300 |
commit | 0c5dab41b6baec548aaea06cb9b545c87b489678 (patch) | |
tree | 85703a98675f4bcf4fdcd145f6bf1891b58e9c8f /spec/uploaders/favicon_uploader_spec.rb | |
parent | acda833a93d5372cdb11b50d01dc14620a451496 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/uploaders/favicon_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/favicon_uploader_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/uploaders/favicon_uploader_spec.rb b/spec/uploaders/favicon_uploader_spec.rb index 6bff3ff8a14..7f452075293 100644 --- a/spec/uploaders/favicon_uploader_spec.rb +++ b/spec/uploaders/favicon_uploader_spec.rb @@ -7,13 +7,13 @@ RSpec.describe FaviconUploader do let_it_be(:uploader) { described_class.new(model, :favicon) } context 'accept whitelist file content type' do - include_context 'ignore extension whitelist check' + include_context 'ignore extension allowlist check' # We need to feed through a valid path, but we force the parsed mime type # in a stub below so we can set any path. let_it_be(:path) { File.join('spec', 'fixtures', 'video_sample.mp4') } - where(:mime_type) { described_class::MIME_WHITELIST } + where(:mime_type) { described_class::MIME_ALLOWLIST } with_them do include_context 'force content type detection to mime_type' @@ -23,7 +23,7 @@ RSpec.describe FaviconUploader do end context 'upload non-whitelisted file content type' do - include_context 'ignore extension whitelist check' + include_context 'ignore extension allowlist check' let_it_be(:path) { File.join('spec', 'fixtures', 'sanitized.svg') } @@ -31,7 +31,7 @@ RSpec.describe FaviconUploader do end context 'upload misnamed non-whitelisted file content type' do - include_context 'ignore extension whitelist check' + include_context 'ignore extension allowlist check' let_it_be(:path) { File.join('spec', 'fixtures', 'not_a_png.png') } |