2023-02-21 16:55:31 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-05 08:46:36 -07:00
|
|
|
Fabricator(:media_attachment) do
|
2023-06-10 09:29:01 -07:00
|
|
|
account { Fabricate.build(:account) }
|
2020-01-23 12:40:03 -08:00
|
|
|
|
2017-06-20 11:40:45 -07:00
|
|
|
file do |attrs|
|
2020-01-23 12:40:03 -08:00
|
|
|
case attrs[:type]
|
|
|
|
when :gifv, :video
|
|
|
|
attachment_fixture('attachment.webm')
|
|
|
|
else
|
|
|
|
attachment_fixture('attachment.jpg')
|
|
|
|
end
|
2017-06-20 11:40:45 -07:00
|
|
|
end
|
2016-09-05 08:46:36 -07:00
|
|
|
end
|