make log reopens even more robust in threaded apps
[unicorn.git] / t / t0300-rails3-basic.sh
blob8bf4066efe3ac702c38ec1f03422c2f69944cf7d
1 #!/bin/sh
2 . ./test-rails3.sh
4 t_plan 3 "Rails 3 (beta) tests"
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 $RAKE db:sessions:create
13 $RAKE db:migrate
14 unicorn_setup
15 unicorn_rails -D -c $unicorn_config
16 unicorn_wait_start
19 # add more tests here
20 t_begin "hit with curl" && {
21 test xHELLO = x"$(curl -sSf http://$listen/x.txt)"
24 t_begin "killing succeeds" && {
25 kill $unicorn_pid
28 t_done