DEV: Prevent warnings in specs

This commit is contained in:
Gerhard Schlager
2019-04-16 11:41:14 +02:00
parent 35a866fe22
commit ac27bdce14
2 changed files with 4 additions and 2 deletions

View File

@ -49,7 +49,9 @@ describe ThemeJavascriptsController do
end
def clear_disk_cache
`rm #{ThemeJavascriptsController::DISK_CACHE_PATH}/*`
if Dir.exist?(ThemeJavascriptsController::DISK_CACHE_PATH)
`rm #{ThemeJavascriptsController::DISK_CACHE_PATH}/*`
end
end
end
end