mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
15 lines
314 B
Ruby
15 lines
314 B
Ruby
Fabricator(:upload) do
|
|
user
|
|
original_filename "uploaded.jpg"
|
|
filesize 1234
|
|
width 100
|
|
height 200
|
|
url "/uploads/default/1/1234567890123456.jpg"
|
|
end
|
|
|
|
Fabricator(:attachment, from: :upload) do
|
|
user
|
|
original_filename "archive.zip"
|
|
filesize 1234
|
|
url "/uploads/default/186/66b3ed1503efc936.zip"
|
|
end
|