about summary refs log tree commit homepage
path: root/t/t0304-rails3-alt-working_directory_no_embed_cli.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0304-rails3-alt-working_directory_no_embed_cli.sh')
-rwxr-xr-xt/t0304-rails3-alt-working_directory_no_embed_cli.sh52
1 files changed, 0 insertions, 52 deletions
diff --git a/t/t0304-rails3-alt-working_directory_no_embed_cli.sh b/t/t0304-rails3-alt-working_directory_no_embed_cli.sh
deleted file mode 100755
index c93f248..0000000
--- a/t/t0304-rails3-alt-working_directory_no_embed_cli.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-. ./test-rails3.sh
-
-t_plan 5 "Rails 3 (beta) inside alt working_directory (no embedded switches)"
-
-t_begin "setup and start" && {
-        unicorn_setup
-        rtmpfiles unicorn_config_tmp usocket
-        if test -e $usocket
-        then
-                die "unexpected $usocket"
-        fi
-        rails3_app=$(cd rails3-app && pwd)
-        rm -rf $t_pfx.app
-        mkdir $t_pfx.app
-        cd $t_pfx.app
-        ( cd $rails3_app && tar cf - . ) | tar xf -
-        $RAKE db:sessions:create
-        $RAKE db:migrate
-        unicorn_setup
-        rm $pid
-
-        grep -v ^pid $unicorn_config > $unicorn_config_tmp
-        echo "working_directory '$t_pfx.app'" >> $unicorn_config_tmp
-        cd /
-        unicorn_rails -c $unicorn_config_tmp \
-          --daemonize --host $host --port $port -l $usocket
-}
-
-t_begin "pids in the right place" && {
-        if test -e $pid
-        then
-                die "pid=$pid not expected"
-        fi
-
-        unicorn_rails_pid="$t_pfx.app/tmp/pids/unicorn.pid"
-        unicorn_pid=$(cat $unicorn_rails_pid)
-}
-
-t_begin "static file serving works" && {
-        test x"$(curl -sSf http://$listen/x.txt)" = xHELLO
-}
-
-t_begin "socket created" && {
-        test -S $usocket
-}
-
-t_begin "killing succeeds" && {
-        kill $unicorn_pid
-}
-
-t_done