class ActiveStorage::FixtureSet

def self.blob(filename:, **attributes)


) %>
service_name: "public"
content_type: "image/svg+xml",
filename: "third.svg",
third_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob(

) %>
filename: "second.svg",
second_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob(
# tests/fixtures/active_storage/blobs.yml

=== Examples

the file to the Service
by ActiveSupport::Testing::FileFixtures.file_fixture, and upload
instance's attributes, resolve the file relative to the directory mentioned
Generate a YAML-encoded representation of an ActiveStorage::Blob
def self.blob(filename:, **attributes)
  new.prepare Blob.new(filename: filename, key: generate_unique_secure_token), **attributes
end