summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-08-02 11:17:05 -0700
committerJohn Keiser <john@johnkeiser.com>2016-08-03 14:16:51 -0700
commitf3f535af42052c664b448159da67de14f8d8c06c (patch)
tree82f8dbd468d81fe9efcf5f3ee592a4f4f49f8e92
parentc7b884a820cb975095eab099ecbde9aa70cb0f99 (diff)
downloadchef-f3f535af42052c664b448159da67de14f8d8c06c.tar.gz
Fix http specs against Ruby 2.3 with more thorough monkeypatching
-rw-r--r--spec/spec_helper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index dcbc34a157..3a05e4dbeb 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -226,6 +226,7 @@ RSpec.configure do |config|
end
require "webrick/utils"
+require "thread"
# Webrick uses a centralized/synchronized timeout manager. It works by
# starting a thread to check for timeouts on an interval. The timeout
@@ -244,7 +245,12 @@ module WEBrick
module Utils
class TimeoutHandler
def initialize
- @timeout_info = Hash.new
+ end
+
+ def register(*args)
+ end
+
+ def cancel(*args)
end
end
end