summary refs log tree commit homepage
path: root/t/t0006.ru
blob: c39e8f6497ede12b2258977fbb1e4e749ab3c24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Rack::ContentLength
use Rack::ContentType, "text/plain"
run lambda { |env|

  # our File objects for stderr/stdout should always have #path
  # and be sync=true
  ok = $stderr.sync &&
       $stdout.sync &&
       String === $stderr.path &&
       String === $stdout.path

  [ 200, {}, [ "#{ok}\n" ] ]
}