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

@ -162,7 +162,7 @@ module JsLocaleHelper
result result
end end
MOMENT_LOCALE_MAPPING = { MOMENT_LOCALE_MAPPING ||= {
"hy" => "hy-am" "hy" => "hy-am"
} }

View File

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