diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-24 20:41:15 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-24 20:42:57 -0700 |
commit | 15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629 (patch) | |
tree | 8edf5313e3ef41395b406706dd807b97e6321eb9 /t/simple-http_Rev.ru | |
parent | e77369a6bde35a4e8925d450aac85f328f87d208 (diff) | |
download | rainbows-15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629.tar.gz |
This will make it easier to enable and manage tests for new concurrency models.
Diffstat (limited to 't/simple-http_Rev.ru')
-rw-r--r-- | t/simple-http_Rev.ru | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_Rev.ru b/t/simple-http_Rev.ru new file mode 100644 index 0000000..a3e2855 --- /dev/null +++ b/t/simple-http_Rev.ru @@ -0,0 +1,9 @@ +use Rack::ContentLength +use Rack::ContentType +run lambda { |env| + if env['rack.multithread'] == false && env['rainbows.model'] == :Rev + [ 200, {}, [ env.inspect << "\n" ] ] + else + raise "rack.multithread is true" + end +} |