From c93a392385e7fe1ca3bf86cabe04f7591cef1a58 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 18 Sep 2018 23:52:14 +0000 Subject: tests: ensure -N/--no-default-middleware not supported in config.ru Continue to make it easy to migrate AWAY from unicorn because vendor lock-in is the worst thing, especially if it's on us. --- t/t0301.ru | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 t/t0301.ru (limited to 't/t0301.ru') diff --git a/t/t0301.ru b/t/t0301.ru new file mode 100644 index 0000000..1ae8ea7 --- /dev/null +++ b/t/t0301.ru @@ -0,0 +1,13 @@ +#\-N --debug +run(lambda do |env| + case env['PATH_INFO'] + when '/vars' + b = "debug=#{$DEBUG.inspect}\n" \ + "lint=#{caller.grep(%r{rack/lint\.rb})[0].split(':')[0]}\n" + end + h = { + 'Content-Length' => b.size.to_s, + 'Content-Type' => 'text/plain', + } + [ 200, h, [ b ] ] +end) -- cgit v1.2.3-24-ge0c7