gemspec: set licenses= attribute
[rainbows.git] / t / t0800-rack-hijack.sh
blobc8f976d821a68589d78b2e7debae9828cf085b42
1 #!/bin/sh
2 . ./test-lib.sh
3 t_plan 5 "rack.hijack tests (Rack 1.5+ (Rack::VERSION >= [1,2]))"
5 t_begin "setup and start" && {
6 rainbows_setup
7 rainbows -D -c $unicorn_config hijack.ru
8 rainbows_wait_start
11 t_begin "check request hijack" && {
12 test "xrequest.hijacked" = x"$(curl -sSfv http://$listen/hijack_req)"
15 t_begin "check response hijack" && {
16 test "xresponse.hijacked" = x"$(curl -sSfv http://$listen/hijack_res)"
19 t_begin "killing succeeds" && {
20 kill $rainbows_pid
23 t_begin "check stderr" && {
24 check_stderr
27 t_done