discourse/spec/fabricators/optimized_image_fabricator.rb
Régis Hanol 6f2ce93ab2 FIX: create an upload when FastImage throws an exception
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
2013-07-13 23:42:19 +02:00

8 lines
105 B
Ruby

Fabricator(:optimized_image) do
upload
sha1 "abcdef"
extension ".png"
width 100
height 200
end