spec/inline_spec.rb in keynote-0.2.0pre3 vs spec/inline_spec.rb in keynote-0.2.0

- old
+ new

@@ -57,27 +57,30 @@ # - (2..4).each do |i| # ' #{i} times end def erb_escaping - erb + + raw = erb # <%= "<script>alert(1);</script>" %> - erb + escaped = erb # <%= "<script>alert(1);</script>".html_safe %> + raw + escaped end def slim_escaping - slim + + raw = slim # = "<script>alert(1);</script>" - slim + escaped = slim # = "<script>alert(1);</script>".html_safe + raw + escaped end def haml_escaping - haml + + raw = haml # = "<script>alert(1);</script>" - haml + escaped = haml # = "<script>alert(1);</script>".html_safe + raw + escaped end end before do Keynote::Inline::Cache.reset