add max_image_height site setting

This commit is contained in:
Régis Hanol
2013-08-26 00:24:24 +02:00
parent 7f185b6a6f
commit 32f717420d
7 changed files with 45 additions and 8 deletions

View File

@ -123,6 +123,7 @@ describe CookedPostProcessor do
let(:cpp) { CookedPostProcessor.new(post) }
before do
SiteSetting.stubs(:max_image_height).returns(2000)
SiteSetting.stubs(:create_thumbnails?).returns(true)
Upload.expects(:get_from_url).returns(upload)
cpp.stubs(:associate_to_post)