about summary refs log tree commit homepage
path: root/t/simple-http_WriterThreadSpawn.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-05-26 22:20:57 +0000
committerEric Wong <normalperson@yhbt.net>2010-05-26 22:34:42 +0000
commit58661617ab802010ecbc45ce3afbca1d63cb9189 (patch)
tree6015af3842630d5b50278689630497810103e816 /t/simple-http_WriterThreadSpawn.ru
parentc6ecda097af9cc559b2d38b01ae23daf733b3786 (diff)
downloadrainbows-58661617ab802010ecbc45ce3afbca1d63cb9189.tar.gz
Diffstat (limited to 't/simple-http_WriterThreadSpawn.ru')
-rw-r--r--t/simple-http_WriterThreadSpawn.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_WriterThreadSpawn.ru b/t/simple-http_WriterThreadSpawn.ru
new file mode 100644
index 0000000..69136f0
--- /dev/null
+++ b/t/simple-http_WriterThreadSpawn.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] && env['rainbows.model'] == :WriterThreadSpawn
+    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is false"
+  end
+}