fix spec changing fake image file extension

This commit is contained in:
Lisa Durand 2024-04-22 16:05:26 +02:00 committed by Eric Leroy-Terquem
parent 96238da249
commit fce2c03015
No known key found for this signature in database
GPG key ID: ECE60B4C1FA2ABB3

View file

@ -105,7 +105,7 @@ RSpec.describe Attachment::MultipleComponent, type: :component do
attached_file.attach( attached_file.attach(
io: StringIO.new("x" * 2), io: StringIO.new("x" * 2),
filename: "me.jpg", filename: "me.jpg",
content_type: "image/jpeg", content_type: "image/png",
metadata: { virus_scan_result: ActiveStorage::VirusScanner::SAFE } metadata: { virus_scan_result: ActiveStorage::VirusScanner::SAFE }
) )
champ.save! champ.save!