4 t_plan
4 'ensure ENV["RACK_ENV"] is set correctly for '$model
13 rtmpfiles curl_out curl_err
16 t_begin
"default RACK_ENV is 'development'" && {
18 rainbows
-D -c $unicorn_config env_rack_env.ru
20 test x
"$(curl -sSf http://$listen 2>$curl_err)" = x
"development"
24 t_begin
"RACK_ENV from process ENV is inherited" && {
26 ( RACK_ENV
=production rainbows
-D -c $unicorn_config env_rack_env.ru
)
28 test x$
(curl
-sSf http
://$listen 2>$curl_err) = x
"production"
32 t_begin
"RACK_ENV from -E is set" && {
34 rainbows
-D -c $unicorn_config -E none env_rack_env.ru
36 test x$
(curl
-sSf http
://$listen 2>$curl_err) = x
"none"