You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
glitchier-soc/spec/fabricators/media_attachment_fabricator.rb

13 lines
221 B

Fabricator(:media_attachment) do
account
file do |attrs|
case attrs[:type]
when :gifv, :video
attachment_fixture('attachment.webm')
else
attachment_fixture('attachment.jpg')
end
end
end