mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:34:28 +08:00
58eabb03e5
admins can set retain periods for assets
11 lines
244 B
Ruby
11 lines
244 B
Ruby
require 'spec_helper'
|
|
|
|
require_dependency 'jobs/scheduled/clean_up_uploads'
|
|
|
|
describe Jobs::CleanUpUploads do
|
|
it "runs correctly without crashing" do
|
|
SiteSetting.clean_up_uploads = true
|
|
Jobs::CleanUpUploads.new.execute(nil)
|
|
end
|
|
end
|