rails/activestorage/test/jobs
Rosa Gutierrez 6ecb53cf92 Don't enqueue jobs to process a preview image if no variant requires it
This follows up on https://github.com/rails/rails/pull/51030, that introduces a
behaviour change for previewable attachments that don't specify any variants at all
or no variants that require pre-processing via `TransformJob`.
Before, when no variant required pre-processing, Attachment#transform_variants_later
didn't do anything. Now, a `ActiveStorage::PreviewImageJob` is enqueued with
the attachment's blob and a empty array.
2024-03-20 07:37:32 +01:00
..
analyze_job_test.rb Correct test class name 2019-09-28 10:31:26 -04:00
preview_image_job_test.rb Don't enqueue jobs to process a preview image if no variant requires it 2024-03-20 07:37:32 +01:00
purge_job_test.rb Remove superfluous test 2018-08-19 01:10:50 -04:00
transform_job_test.rb Discard unrepresentable blobs while preprocessing 2023-11-17 22:44:07 +01:00