This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-02-22 01:55:31 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-05 17:46:36 +02:00
|
|
|
Fabricator(:media_attachment) do
|
2023-06-10 18:29:01 +02:00
|
|
|
account { Fabricate.build(: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
|