mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:31:45 +08:00
![Régis Hanol](/assets/img/avatar_default.png)
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
|