Merge commit '2e9b2df570af19b67a5ccc754c7b581034ca79c6' into glitch-soc/merge-upstream
Conflicts: - `app/javascript/styles/mastodon/components.scss`: Upstream removed some code that somehow had been modified in glitch-soc. Removed it as upstream did.
This commit is contained in:
commit
e7498887a7
30 files changed
+808
-815
No files matched your search
@@ -302,6 +302,15 @@ RSpec.describe MediaAttachment, :attachment_processing do
|
||||
.to enqueue_sidekiq_job(CacheBusterWorker).with(original_url)
|
||||
.and enqueue_sidekiq_job(CacheBusterWorker).with(small_url)
|
||||
end
|
||||
|
||||
context 'with a missing remote attachment' do
|
||||
let(:media) { Fabricate(:media_attachment, remote_url: 'https://example.com/foo.png', file: nil) }
|
||||
|
||||
it 'does not queue CacheBusterWorker jobs' do
|
||||
expect { media.destroy }
|
||||
.to_not enqueue_sidekiq_job(CacheBusterWorker)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in new issue
Block a user