about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rwxr-xr-xt/t0020-large-sendfile-response.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/t0020-large-sendfile-response.sh b/t/t0020-large-sendfile-response.sh
index 822a23f..8e71db1 100755
--- a/t/t0020-large-sendfile-response.sh
+++ b/t/t0020-large-sendfile-response.sh
@@ -14,10 +14,8 @@ t_plan 7 "large sendfile response for $model"
 t_begin "setup and startup" && {
         rtmpfiles curl_out a b c
         rainbows_setup $model 2
-
-        # FIXME: allow "require 'sendfile'" to work in $unicorn_config
-        RUBYOPT="-rsendfile"
-        export RUBYOPT
+        echo 'require "sendfile"' >> $unicorn_config
+        echo 'def (::IO).copy_stream(*x); abort "NO"; end' >> $unicorn_config
 
         # can't load Rack::Lint here since it clobbers body#to_path
         rainbows -E none -D large-file-response.ru -c $unicorn_config