Use config_for for cache buster values (#34851)

This commit is contained in:
Matt Jankowski 2025-05-30 07:54:25 -04:00 committed by GitHub
parent 9860046b04
commit c025824f98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 13 additions and 19 deletions

View file

@ -291,7 +291,7 @@ RSpec.describe MediaAttachment, :attachment_processing do
let(:media) { Fabricate(:media_attachment) }
before do
allow(Rails.configuration.x).to receive(:cache_buster_enabled).and_return(true)
allow(Rails.configuration.x.cache_buster).to receive(:enabled).and_return(true)
end
it 'queues CacheBusterWorker jobs' do

View file

@ -11,7 +11,7 @@ RSpec.describe SuspendAccountService do
before do
allow(FeedManager.instance).to receive_messages(unmerge_from_home: nil, unmerge_from_list: nil)
allow(Rails.configuration.x).to receive(:cache_buster_enabled).and_return(true)
allow(Rails.configuration.x.cache_buster).to receive(:enabled).and_return(true)
local_follower.follow!(account)
list.accounts << account