summary refs log tree commit homepage
path: root/t/t0006.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/t0006.ru')
-rw-r--r--t/t0006.ru13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t0006.ru b/t/t0006.ru
new file mode 100644
index 0000000..c39e8f6
--- /dev/null
+++ b/t/t0006.ru
@@ -0,0 +1,13 @@
+use Rack::ContentLength
+use Rack::ContentType, "text/plain"
+run lambda { |env|
+
+  # our File objects for stderr/stdout should always have #path
+  # and be sync=true
+  ok = $stderr.sync &&
+       $stdout.sync &&
+       String === $stderr.path &&
+       String === $stdout.path
+
+  [ 200, {}, [ "#{ok}\n" ] ]
+}