spec/gon/global_spec.rb in gon-3.0.4 vs spec/gon/global_spec.rb in gon-3.0.5
- old
+ new
@@ -70,10 +70,10 @@
end
it 'outputs correct js with a script string' do
Gon.global.str = %q(</script><script>alert('!')</script>)
@base.include_gon.should == "<script>window.gon = {};" +
- "gon.global={\"str\":\"<\\/script><script>alert('!')<\\/script>\"};" +
+ "gon.global={\"str\":\"\\u003C/script><script>alert('!')\\u003C/script>\"};" +
"</script>"
end
end