class
ActiveStorage::Blob::VariableTest
- ActiveStorage::Blob::VariableTest
- Minitest::Test
- Minitest::Runnable
- Reference
- Object
Overview
Whether a variant could exist at all is decided by ActiveStorage.variable_content_types: the
list of content types a variant processor reads.
:nodoc:
Defined in:
active_storage/blob/representable_test.crInstance Method Summary
- #setup
- #teardown
- #test_a_blob_without_a_content_type_is_not_variable
-
#test_a_variable_content_type_is_variable
heic is on the Rails 8.1.3 list, next to the formats libvips has always read.
-
#test_an_image_outside_the_list_is_not_variable
svg is an image no variant processor reads, so a Rails app never wrote a variant of it.
- #test_the_configured_list_decides
Instance Method Detail
def test_a_variable_content_type_is_variable
#
heic is on the Rails 8.1.3 list, next to the formats libvips has always read.
def test_an_image_outside_the_list_is_not_variable
#
svg is an image no variant processor reads, so a Rails app never wrote a variant of it. Reading
#image? instead was the bug: it sent a redirect to an object that does not exist.