This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/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