4 t_plan
4 "fooapp.rb inside alt working_directory"
6 t_begin
"setup and start" && {
11 cat > $t_pfx.app
/fooapp.rb
<<\EOF
14 [ 200, [%w
(Content-Type text
/plain
), %w
(Content-Length
2)], %w
(HI
) ]
18 # the whole point of this exercise
19 echo "working_directory '$t_pfx.app'" >> $unicorn_config
21 unicorn
-D -c $unicorn_config -I. fooapp.rb
25 t_begin
"hit with curl" && {
26 body
=$
(curl
-sSf http
://$listen/)
29 t_begin
"killing succeeds" && {
33 t_begin
"response body expected" && {