summary refs log tree commit homepage
path: root/t/t0301-no-default-middleware-ignored-in-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0301-no-default-middleware-ignored-in-config.sh')
-rwxr-xr-xt/t0301-no-default-middleware-ignored-in-config.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/t/t0301-no-default-middleware-ignored-in-config.sh b/t/t0301-no-default-middleware-ignored-in-config.sh
new file mode 100755
index 0000000..0b6cd94
--- /dev/null
+++ b/t/t0301-no-default-middleware-ignored-in-config.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+. ./test-lib.sh
+t_plan 3 "-N / --no-default-middleware option not supported in config.ru"
+
+t_begin "setup and start" && {
+        unicorn_setup
+        RACK_ENV=development unicorn -D -c $unicorn_config t0301.ru
+        unicorn_wait_start
+}
+
+t_begin "check switches parsed as expected and -N ignored for Rack::Lint" && {
+        debug=false
+        lint=
+        eval "$(curl -sf http://$listen/vars)"
+        test x"$debug" = xtrue
+        test x"$lint" != x
+        test -f "$lint"
+}
+
+t_begin "killing succeeds" && {
+        kill $unicorn_pid
+        check_stderr
+}
+
+t_done