require "simplecov" SimpleCov.start require "tmpdir" require "daily_weekly_monthly" def backups_dir @backups_dir ||= Dir.mktmpdir end at_exit do FileUtils.remove_entry backups_dir end