mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Broken locale specs
This commit is contained in:
parent
55c01d3320
commit
268ea0206e
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ describe JsLocaleHelper do
|
||||||
it "generates valid date helpers for #{locale[:value]} locale" do
|
it "generates valid date helpers for #{locale[:value]} locale" do
|
||||||
js = JsLocaleHelper.output_locale(locale[:value])
|
js = JsLocaleHelper.output_locale(locale[:value])
|
||||||
ctx = V8::Context.new
|
ctx = V8::Context.new
|
||||||
|
ctx.eval('var window = this;')
|
||||||
ctx.load(Rails.root + 'app/assets/javascripts/locales/i18n.js')
|
ctx.load(Rails.root + 'app/assets/javascripts/locales/i18n.js')
|
||||||
ctx.eval(js)
|
ctx.eval(js)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue