test/test_code_escaping.rb in skim-0.8.6 vs test/test_code_escaping.rb in skim-0.9.0
- old
+ new
@@ -4,19 +4,19 @@
def test_escaping_evil_method
source = %q{
p = @evil_method()
}
- assert_html '<p><script>do_something_evil();</script></p>', source
+ assert_html '<p><script>do_something_evil();</script></p>', source
end
def test_render_unsafe
source = %q{
p = "<strong>Hello World\\n, meet \\"Skim\\"</strong>."
}
- assert_html "<p><strong>Hello World\n, meet \"Skim\"</strong>.</p>", source
+ assert_html "<p><strong>Hello World\n, meet \"Skim\"</strong>.</p>", source
end
def test_render_safe
source = %q{
p = @safe("<strong>Hello World\\n, meet \\"Skim\\"</strong>.")
@@ -29,10 +29,10 @@
source = %q{
= "<p>Hello</p>"
== "<p>World</p>"
}
- assert_html "<p>Hello</p><p>World</p>", source
+ assert_html "<p>Hello</p><p>World</p>", source
end
def test_render_with_disable_escape_true
source = %q{
= "<p>Hello</p>"