From 268ea0206eec8c15ac7396a8fdef36ab02cfbfcd Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 20 Aug 2014 15:01:31 -0400 Subject: [PATCH] FIX: Broken locale specs --- spec/components/js_locale_helper_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/components/js_locale_helper_spec.rb b/spec/components/js_locale_helper_spec.rb index 269ee01eb0e..a182d2102ee 100644 --- a/spec/components/js_locale_helper_spec.rb +++ b/spec/components/js_locale_helper_spec.rb @@ -88,6 +88,7 @@ describe JsLocaleHelper do it "generates valid date helpers for #{locale[:value]} locale" do js = JsLocaleHelper.output_locale(locale[:value]) ctx = V8::Context.new + ctx.eval('var window = this;') ctx.load(Rails.root + 'app/assets/javascripts/locales/i18n.js') ctx.eval(js) end