discourse/spec/fabricators/upload_fabricator.rb

16 lines
314 B
Ruby
Raw Normal View History

Fabricator(:upload) do
user
original_filename "uploaded.jpg"
filesize 1234
width 100
height 200
2013-06-17 16:46:48 -04:00
url "/uploads/default/1/1234567890123456.jpg"
end
2013-07-10 16:59:07 -04:00
Fabricator(:attachment, from: :upload) do
user
original_filename "archive.zip"
filesize 1234
url "/uploads/default/186/66b3ed1503efc936.zip"
end