about summary refs log tree commit homepage
path: root/t/t0303-rails3-alt-working_directory_config.ru.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0303-rails3-alt-working_directory_config.ru.sh')
-rwxr-xr-xt/t0303-rails3-alt-working_directory_config.ru.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/t/t0303-rails3-alt-working_directory_config.ru.sh b/t/t0303-rails3-alt-working_directory_config.ru.sh
index b6fe5e7..444f05a 100755
--- a/t/t0303-rails3-alt-working_directory_config.ru.sh
+++ b/t/t0303-rails3-alt-working_directory_config.ru.sh
@@ -10,8 +10,11 @@ t_plan 5 "Rails 3 (beta) inside alt working_directory (w/ config.ru)"
 
 t_begin "setup and start" && {
         unicorn_setup
-        rtmpfiles unicorn_config_tmp usock
-        rm -f $usock
+        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
@@ -22,7 +25,7 @@ t_begin "setup and start" && {
         unicorn_setup
         rm $pid
 
-        echo "#\\--daemonize --host $host --port $port -l $usock" \
+        echo "#\\--daemonize --host $host --port $port -l $usocket" \
              >> $t_pfx.app/config.ru
 
         # we have --host/--port in config.ru instead
@@ -48,7 +51,7 @@ t_begin "static file serving works" && {
 }
 
 t_begin "socket created" && {
-        test -S $usock
+        test -S $usocket
 }
 
 t_begin "killing succeeds" && {