class ActiveStorage::Blob::VariableTest

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.cr

Instance Method Summary

Instance Method Detail

def setup #

def teardown #

def test_a_blob_without_a_content_type_is_not_variable #

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.


def test_the_configured_list_decides #