DEV: Prevent warnings in specs
This commit is contained in:
parent
35a866fe22
commit
ac27bdce14
|
@ -162,7 +162,7 @@ module JsLocaleHelper
|
|||
result
|
||||
end
|
||||
|
||||
MOMENT_LOCALE_MAPPING = {
|
||||
MOMENT_LOCALE_MAPPING ||= {
|
||||
"hy" => "hy-am"
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue