mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 06:16:41 +08:00
DEV: Prevent warnings in specs
This commit is contained in:
parent
35a866fe22
commit
ac27bdce14
@ -162,7 +162,7 @@ module JsLocaleHelper
|
|||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
MOMENT_LOCALE_MAPPING = {
|
MOMENT_LOCALE_MAPPING ||= {
|
||||||
"hy" => "hy-am"
|
"hy" => "hy-am"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,9 @@ describe ThemeJavascriptsController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def clear_disk_cache
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user