mastodon/spec/fabricators/media_attachment_fabricator.rb

5 lines
155 B
Ruby

Fabricator(:media_attachment) do
account
file { [attachment_fixture(['attachment.gif', 'attachment.jpg', 'attachment.webm'].sample), nil].sample }
end