about summary refs log tree commit homepage
path: root/t/env_rack_env.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-05 01:50:17 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-05 01:50:17 -0800
commit8ce1ba6cc7409e5c6b04286bdf09bc175a0274fb (patch)
tree881f02000435f9727c9d9cadf3a417a2d4ba3515 /t/env_rack_env.ru
parentb5c1db0c2cd95bcfba1e67fa8a0a058f80025528 (diff)
downloadrainbows-8ce1ba6cc7409e5c6b04286bdf09bc175a0274fb.tar.gz
Add tests to ensure we set it correctly and it gets
passed down to the app.
Diffstat (limited to 't/env_rack_env.ru')
-rw-r--r--t/env_rack_env.ru4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/env_rack_env.ru b/t/env_rack_env.ru
new file mode 100644
index 0000000..7f12b29
--- /dev/null
+++ b/t/env_rack_env.ru
@@ -0,0 +1,4 @@
+use Rack::ContentLength
+run proc { |env|
+  [ 200, { "Content-Type" => "text/plain" }, [ ENV["RACK_ENV"] ] ]
+}