mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
enable thumbnailing on S3
- added url to optimized image model - refactored s3_store & local_store
This commit is contained in:
@ -65,5 +65,18 @@ describe Discourse do
|
||||
|
||||
end
|
||||
|
||||
context "#store" do
|
||||
|
||||
it "returns LocalStore by default" do
|
||||
Discourse.store.should be_a(LocalStore)
|
||||
end
|
||||
|
||||
it "returns S3Store when S3 is enabled" do
|
||||
SiteSetting.expects(:enable_s3_uploads?).returns(true)
|
||||
Discourse.store.should be_a(S3Store)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user