Silence deprecation warning in CacheBuster spec (#27264)

lolsob-rspec
Matt Jankowski 2023-10-04 04:17:36 -04:00 committed by GitHub
parent 68ec1d180a
commit 72cec47c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,14 @@ describe CacheBuster do
end
context 'when using default options' do
around do |example|
# Disables the CacheBuster.new deprecation warning about default arguments.
# Remove this `silence` block when default arg support is removed from CacheBuster
ActiveSupport::Deprecation.silence do
example.run
end
end
include_examples 'makes_request'
end