mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Adds upload fabricator for subfolder image upload
This commit is contained in:
parent
11ddcb1bfa
commit
b619bd2782
1 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,16 @@ Fabricator(:upload) do
|
|||
url "/uploads/default/1/1234567890123456.png"
|
||||
end
|
||||
|
||||
Fabricator(:subfolder_upload, from: :upload) do
|
||||
user
|
||||
sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98"
|
||||
original_filename "logo.png"
|
||||
filesize 1234
|
||||
width 100
|
||||
height 200
|
||||
url "/uploads/default/1/1234567890123456.png"
|
||||
end
|
||||
|
||||
Fabricator(:attachment, from: :upload) do
|
||||
id 42
|
||||
user
|
||||
|
|
Loading…
Reference in a new issue