mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
6f2ce93ab2
FastImage might throw an exception when it isn't able to recognize a file as being an image (ie. happens when users changes the extension manually) Also improved upload specs a lot
7 lines
105 B
Ruby
7 lines
105 B
Ruby
Fabricator(:optimized_image) do
|
|
upload
|
|
sha1 "abcdef"
|
|
extension ".png"
|
|
width 100
|
|
height 200
|
|
end
|