about summary refs log tree commit homepage
path: root/t/t0000-basic.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0000-basic.sh')
-rwxr-xr-xt/t0000-basic.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index 7c5c754..03c0dfe 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -2,17 +2,10 @@
 . ./test-lib.sh
 
 eval $(unused_listen)
-config_ru=$(mktemp -t rainbows.$$.XXXXXXXX.config.ru)
-pid=$(mktemp -t rainbows.$$.XXXXXXXX.pid)
-TEST_RM_LIST="$TEST_RM_LIST $config_ru $lock_path"
+pid=$(mktemp -t rainbows.$$.pid.XXXXXXXX)
+TEST_RM_LIST="$TEST_RM_LIST $lock_path $pid"
 
-cat > $config_ru <<\EOF
-use Rack::ContentLength
-use Rack::ContentType
-run lambda { |env| [ 200, {}, [ env.inspect << "\n" ] ] }
-EOF
-
-rainbows $config_ru -l $listen --pid $pid &
+rainbows t0000.ru -l $listen --pid $pid &
 wait_for_pid $pid
 curl -sSfv http://$listen/
 kill $(cat $pid)