Use config_for
for cache buster values (#34851)
This commit is contained in:
parent
9860046b04
commit
c025824f98
9 changed files with 13 additions and 19 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue