mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-11 18:22:53 -05:00
Silence deprecation warning in CacheBuster spec (#27264)
This commit is contained in:
parent
68ec1d180a
commit
72cec47c13
@ -28,6 +28,14 @@ describe CacheBuster do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context 'when using default options' do
|
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'
|
include_examples 'makes_request'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user