spec/intranet/system/responder_spec.rb in intranet-system-1.1.1 vs spec/intranet/system/responder_spec.rb in intranet-system-1.1.2

- old
+ new

@@ -133,11 +133,11 @@ it 'should return the internationalized version of required JavaScript variables' do code, mime, content = @responder.generate_page('/i18n.js', {}) expect(code).to eql(200) expect(mime).to eql('text/javascript') expect(content).to eql( - "var byte_abbrev = '#{I18n.t('system.byte_abbrev')}';\n" \ - "var out_of = '#{I18n.t('system.out_of')}';\n" + "window.byte_abbrev = '#{I18n.t('system.byte_abbrev')}';\n" \ + "window.out_of = '#{I18n.t('system.out_of')}';\n" ) end end context 'otherwise' do