2023-02-22 01:55:31 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-05 17:46:36 +02:00
|
|
|
Fabricator(:media_attachment) do
|
2017-04-07 18:50:43 +02:00
|
|
|
account
|
2020-01-23 21:40:03 +01:00
|
|
|
|
2017-06-20 20:40:45 +02:00
|
|
|
file do |attrs|
|
2020-01-23 21:40:03 +01:00
|
|
|
case attrs[:type]
|
|
|
|
when :gifv, :video
|
|
|
|
attachment_fixture('attachment.webm')
|
|
|
|
else
|
|
|
|
attachment_fixture('attachment.jpg')
|
|
|
|
end
|
2017-06-20 20:40:45 +02:00
|
|
|
end
|
2016-09-05 17:46:36 +02:00
|
|
|
end
|