Sha256: af46ce41375901aeb107947a592d8f0dfc5aa8b2ec9adf4d0bb870bffd02157f
Contents?: true
Size: 265 Bytes
Versions: 6
Compression:
Stored size: 265 Bytes
Contents
test "default headers" do Tynn.set(:default_headers, "Content-Type" => "text/plain") Tynn.define do root do res.write("hei") end end app = Tynn::Test.new(Tynn) app.get("/") assert_equal "text/plain", app.res.headers["Content-Type"] end
Version data entries
6 entries across 6 versions & 1 rubygems