spec/gon/basic_spec.rb in gon-4.1.0 vs spec/gon/basic_spec.rb in gon-4.1.1
- old
+ new
@@ -100,10 +100,10 @@
it 'outputs correct js with a script string' do
Gon.str = %q(</script><script>alert('!')</script>)
@base.include_gon.should == '<script type="text/javascript">' +
"\n//<![CDATA[\n" +
'window.gon = {};' +
- %q(gon.str="</script><script>alert('!')</script>";) +
+ %q(gon.str="\u003C/script><script>alert('!')\u003C/script>";) +
"\n//]]>\n" +
'</script>'
end
it 'outputs correct js with an integer, camel-case and namespace' do