about summary refs log tree commit homepage
path: root/t/simple-http_RevThreadSpawn.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-07 20:15:03 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-08 00:34:35 -0800
commitb4f1271320d38e83141dbb38463c3a368661aef7 (patch)
treebc0514443ebc62d2f24b2c690e3499c5a6dd9cb2 /t/simple-http_RevThreadSpawn.ru
parent026219a98c0ecf919c3ecce32ba389254a571795 (diff)
downloadrainbows-b4f1271320d38e83141dbb38463c3a368661aef7.tar.gz
Seems to pass all tests, but that may only mean our
test cases are lacking...
Diffstat (limited to 't/simple-http_RevThreadSpawn.ru')
-rw-r--r--t/simple-http_RevThreadSpawn.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_RevThreadSpawn.ru b/t/simple-http_RevThreadSpawn.ru
new file mode 100644
index 0000000..145b876
--- /dev/null
+++ b/t/simple-http_RevThreadSpawn.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] && env['rainbows.model'] == :RevThreadSpawn
+    [ 200, {}, [ env.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is false"
+  end
+}