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 # Rack::Lint in 1.5.0 requires headers to be a hash
15 h
= [%w
(Content-Type text
/plain
), %w
(Content-Length
2)]
16 h
= Rack
::Utils
::HeaderHash.new
(h
)
21 # the whole point of this exercise
22 echo "working_directory '$t_pfx.app'" >> $unicorn_config
24 unicorn
-D -c $unicorn_config -I. fooapp.rb
28 t_begin
"hit with curl" && {
29 body
=$
(curl
-sSf http
://$listen/)
32 t_begin
"killing succeeds" && {
36 t_begin
"response body expected" && {