fixing up moment locales, they were not set up properly

This commit is contained in:
Sam
2013-07-25 11:09:29 +10:00
parent 1b02a7c580
commit d0f50cb266
53 changed files with 50 additions and 2506 deletions

View File

@@ -84,4 +84,13 @@ describe JsLocaleHelper do
message.should_not match 'Plural Function not found'
end
LocaleSiteSetting.values.each do |locale|
it "generates valid date helpers for #{locale} locale" do
js = JsLocaleHelper.output_locale(locale)
ctx = V8::Context.new
ctx.load(Rails.root + 'app/assets/javascripts/locales/i18n.js')
ctx.eval(js)
end
end
end