5 *) exit 0 ;; # don't waste cycles on trivial stuff :P
8 t_plan
6 "ServerToken Rack middleware test for $model"
10 t_begin
"configure and start" && {
11 rtmpfiles curl_out curl_err
13 rainbows
-D t9002.ru
-c $unicorn_config
17 t_begin
"hit with curl" && {
18 curl
-sSfiI http
://$listen/ > $curl_out 2> $curl_err
21 t_begin
"kill server" && {
25 t_begin
"no errors in curl stderr" && {
29 t_begin
"no errors in Rainbows! stderr" && {
33 t_begin
"Server: token added" && {
34 grep Server
: $curl_out