discourse/spec/jobs/clean_up_uploads_spec.rb
Sam 58eabb03e5 FEATURE: api support for arbitrary unlinked assets
admins can set retain periods for assets
2014-09-23 16:50:17 +10:00

10 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