diff options
author | Eric Wong <e@80x24.org> | 2016-07-26 23:54:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-26 23:54:54 +0000 |
commit | e138d022e98b66c535f9bbdb230e4b5087fd8f33 (patch) | |
tree | ffeec5891d2b3c1c7b623970a402ea2723fe2805 /test/test_reopen_logs.rb | |
parent | 4d5c57d62e603cbadf6b896489ae49bb197b6fe8 (diff) | |
download | yahns-e138d022e98b66c535f9bbdb230e4b5087fd8f33.tar.gz |
rack 2.x has some incompatible changes an deprecations; support it but remain compatible with rack 1.x for the next few years.
Diffstat (limited to 'test/test_reopen_logs.rb')
-rw-r--r-- | test/test_reopen_logs.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_reopen_logs.rb b/test/test_reopen_logs.rb index 2eb3e0d..2ad1306 100644 --- a/test/test_reopen_logs.rb +++ b/test/test_reopen_logs.rb @@ -2,7 +2,11 @@ # License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) # frozen_string_literal: true require_relative 'server_helper' -require 'rack/commonlogger' +require 'rack' +# trigger autoload, since rack 1.x => 2.x renames: +# 'rack/commonlogger' => 'rack/common_logger' +# so we can't require directly +Rack::CommonLogger.class class TestReopenLogs < Testcase ENV["N"].to_i > 1 and parallelize_me! |