added a rake task to clean orphan uploaded files

This commit is contained in:
Régis Hanol
2013-06-19 21:51:41 +02:00
parent 3e0f47705a
commit 4a17d6dca6
6 changed files with 74 additions and 20 deletions

View File

@ -15,7 +15,7 @@ describe LocalStore do
let(:image_info) { FastImage.new(file) }
it 'returns the url of the S3 upload if successful' do
it 'returns the url of the uploaded file if successful' do
# prevent the tests from creating directories & files...
FileUtils.stubs(:mkdir_p)
File.stubs(:open)