update test infrastructure to support Rubinius
[rainbows.git] / t / async-response.ru
blobef76504ce2b66eeb714243f0e842146bc5f6e185
1 use Rack::Chunked
2 use Rainbows::DevFdResponse
3 run lambda { |env|
4   io = IO.popen('for i in 0 1 2 3 4 5 6 7 8 9; do date; sleep 1; done', 'rb')
5   io.sync = true
6   [
7     200,
8     {
9       'Content-Type' => 'text/plain',
10     },
11     io
12   ].freeze