3 t_plan
4 "configurator internals tests (from FAQ)"
5 t_begin
"setup and start" && {
7 cat >> $unicorn_config <<EOF
8 HttpRequest::DEFAULTS["rack.url_scheme"] = "https"
9 Configurator::DEFAULTS[:logger].formatter = Logger::Formatter.new
11 unicorn
-D -c $unicorn_config env.ru
15 t_begin
"single request" && {
16 curl
-sSfv http
://$listen/ |
grep '"rack.url_scheme"=>"https"'
19 t_begin
"killing succeeds" && {
23 t_begin
"no errors" && check_stderr