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