mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Nuke all SiteSetting.stubs
from our codebase.
This commit is contained in:
parent
e7e16de3e0
commit
13f3de4bf6
59 changed files with 257 additions and 262 deletions
|
@ -29,7 +29,7 @@ describe Upload do
|
|||
context ".create_thumbnail!" do
|
||||
|
||||
it "does not create a thumbnail when disabled" do
|
||||
SiteSetting.stubs(:create_thumbnails?).returns(false)
|
||||
SiteSetting.create_thumbnails = false
|
||||
OptimizedImage.expects(:create_for).never
|
||||
upload.create_thumbnail!(100, 100)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue