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