about summary refs log tree commit homepage
path: root/t/simple-http_CoolioThreadPool.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/simple-http_CoolioThreadPool.ru')
-rw-r--r--t/simple-http_CoolioThreadPool.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_CoolioThreadPool.ru b/t/simple-http_CoolioThreadPool.ru
new file mode 100644
index 0000000..b65357c
--- /dev/null
+++ b/t/simple-http_CoolioThreadPool.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] && env['rainbows.model'] == :CoolioThreadPool
+    [ 200, {}, [ env.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is false"
+  end
+}