require "contextual" TEMPLATE = <<-eos <% def helper(obj); "Hello, \#{obj['world']}"; end %>
<%= helper(object) %>
eos EXPECTED = <<-eos
Hello, <Cincinnati>
eos describe Contextual do it "should escape unsafe content" do t = Erubis::ContextualEruby.new(" \ <% elements.each do |e| %> \ <%= e %> \ <% end %> \ ") elements = ['