spec/support/server.rb in routemaster-drain-3.3.0 vs spec/support/server.rb in routemaster-drain-3.4.0
- old
+ new
@@ -5,10 +5,11 @@
# Patch WEBrick as it doesn't support PATCH (?)
module WEBrick
module HTTPServlet
class ProcHandler
alias do_PATCH do_GET
+ alias do_DELETE do_GET
end
end
end
class TestServer
@@ -23,10 +24,10 @@
WEBrick::HTTPServer.new(
Port: @port,
DocumentRoot: Dir.pwd,
Logger: WEBrick::Log.new('/dev/null'),
AccessLog: [nil, nil]
- ).tap do |server|
+ ).tap do |server|
@setup.call(server)
server.start
end
end