From 8ce1ba6cc7409e5c6b04286bdf09bc175a0274fb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 5 Nov 2009 01:50:17 -0800 Subject: ensure RACK_ENV is inherited from the parent env Add tests to ensure we set it correctly and it gets passed down to the app. --- t/env_rack_env.ru | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 t/env_rack_env.ru (limited to 't/env_rack_env.ru') 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"] ] ] +} -- cgit v1.2.3-24-ge0c7