about summary refs log tree commit homepage
path: root/t/broken-app.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/broken-app.ru')
-rw-r--r--t/broken-app.ru12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/broken-app.ru b/t/broken-app.ru
new file mode 100644
index 0000000..d05d7ab
--- /dev/null
+++ b/t/broken-app.ru
@@ -0,0 +1,12 @@
+# we do not want Rack::Lint or anything to protect us
+use Rack::ContentLength
+use Rack::ContentType, "text/plain"
+map "/" do
+  run lambda { |env| [ 200, {}, [ "OK\n" ] ] }
+end
+map "/raise" do
+  run lambda { |env| raise "BAD" }
+end
+map "/nil" do
+  run lambda { |env| nil }
+end