From 72cec47c13d0f3050e223fc31bfbef73f75ff893 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 4 Oct 2023 04:17:36 -0400 Subject: [PATCH] Silence deprecation warning in CacheBuster spec (#27264) --- spec/lib/cache_buster_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/lib/cache_buster_spec.rb b/spec/lib/cache_buster_spec.rb index 84085608e8..3dc62a8154 100644 --- a/spec/lib/cache_buster_spec.rb +++ b/spec/lib/cache_buster_spec.rb @@ -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