Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
ea7af7a83b39f59f6bfb155c7b041a637e49b466
discourse/spec/fabricators/optimized_image_fabricator.rb

9 lines
166 B
Ruby
Raw Normal View History

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
Fabricator(:optimized_image) do
upload
enable thumbnailing on S3 - added url to optimized image model - refactored s3_store & local_store
2013-07-31 23:26:34 +02:00
sha1 "86f7e437faa5a7fce15d1ddcb9eaeaea377667b8"
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
extension ".png"
width 100
height 200
enable thumbnailing on S3 - added url to optimized image model - refactored s3_store & local_store
2013-07-31 23:26:34 +02:00
url "138569_100x200.png"
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
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 118ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API