enable thumbnailing on S3

- added url to optimized image model
- refactored s3_store & local_store
This commit is contained in:
Régis Hanol
2013-07-31 23:26:34 +02:00
parent 36b6b8d78e
commit ed9417fa3b
23 changed files with 522 additions and 478 deletions

View File

@ -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