mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:53:46 +08: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
8 lines
105 B
Ruby
8 lines
105 B
Ruby
Fabricator(:optimized_image) do
|
|
upload
|
|
sha1 "abcdef"
|
|
extension ".png"
|
|
width 100
|
|
height 200
|
|
end
|