about summary refs log tree commit homepage
path: root/t/simple-http_ActorSpawn.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-21 03:11:29 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-21 03:11:29 +0000
commit5470d0688ec610861241408790d22b583e211ac5 (patch)
treefcdf298e82eb68e140d7f5574481742e27f156fd /t/simple-http_ActorSpawn.ru
parent51b2d65b081b0e802acdd25295e04889bbccaddc (diff)
downloadrainbows-5470d0688ec610861241408790d22b583e211ac5.tar.gz
They're ugly and potentially non-portable to other servers.
They also make Unicorn + Rubinius unhappy, which makes us
unhappy as well.
Diffstat (limited to 't/simple-http_ActorSpawn.ru')
-rw-r--r--t/simple-http_ActorSpawn.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_ActorSpawn.ru b/t/simple-http_ActorSpawn.ru
new file mode 100644
index 0000000..da17d5d
--- /dev/null
+++ b/t/simple-http_ActorSpawn.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] && env['rainbows.model'] == :ActorSpawn
+    [ 200, {}, [ Actor.current.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is not true"
+  end
+}