rainbows: set and use process-wide ENV["RACK_ENV"]
[rainbows.git] / t / t1000.ru
blob4bb7348e9e01cf72bf138b267a607300d8365e60
1 use Rack::ContentLength
2 use Rack::ContentType
3 run lambda { |env|
4   sleep 1
5   if env['rack.multithread'] && env['rainbows.model'] == :ThreadPool
6     [ 200, {}, [ Thread.current.inspect << "\n" ] ]
7   else
8     raise "rack.multithread is not true"
9   end