README: clarify the versions of "Ruby license"
[unicorn.git] / t / t0301-rails3-missing-config-ru.sh
blob355ae44eb4d982f6d6c58a7f0dfc1f57c499967e
1 #!/bin/sh
2 . ./test-rails3.sh
4 t_plan 4 "Rails 3 (beta) tests for config.ru haters"
6 t_begin "setup and start" && {
7 rails3_app=$(cd rails3-app && pwd)
8 rm -rf $t_pfx.app
9 mkdir $t_pfx.app
10 cd $t_pfx.app
11 ( cd $rails3_app && tar cf - . ) | tar xf -
12 rm config.ru
13 $RAKE db:sessions:create
14 $RAKE db:migrate
15 unicorn_setup
16 unicorn_rails -D -c $unicorn_config
17 unicorn_wait_start
20 t_begin "static file serving works" && {
21 test x"$(curl -sSf http://$listen/x.txt)" = xHELLO
24 # add more tests here
25 t_begin "hit with curl" && {
26 curl -v http://$listen/ || :
29 t_begin "killing succeeds" && {
30 kill $unicorn_pid
33 t_done