require_relative "../lib/tynn/erubis" setup do Tynn.helpers(Tynn::Erubis, views: File.expand_path("./test/views")) Tynn::Test.new end test "escapes" do |app| Tynn.define do root do res.write(partial("partial", name: "")) end end app = Tynn::Test.new app.get("/") assert_equal "<a></a>", app.res.body.strip end