support for Rack hijack in request and response
[unicorn.git] / t / t0004-working_directory_broken.sh
blobca9d382540950404879bb92a2598701bac72036c
1 #!/bin/sh
2 . ./test-lib.sh
4 t_plan 3 "config.ru is missing inside alt working_directory"
6 t_begin "setup" && {
7 unicorn_setup
8 rtmpfiles unicorn_config_tmp ok
9 rm -rf $t_pfx.app
10 mkdir $t_pfx.app
12 # the whole point of this exercise
13 echo "working_directory '$t_pfx.app'" >> $unicorn_config_tmp
16 t_begin "fails to start up w/o config.ru" && {
17 unicorn -c $unicorn_config_tmp || echo ok > $ok
20 t_begin "fallback code was run" && {
21 test x"$(cat $ok)" = xok
24 t_done