spec/support/dummy_server.rb in http-5.0.0.pre vs spec/support/dummy_server.rb in http-5.0.0.pre2
- old
+ new
@@ -11,18 +11,18 @@
class DummyServer < WEBrick::HTTPServer
include ServerConfig
CONFIG = {
- :BindAddress => "127.0.0.1",
- :Port => 0,
- :AccessLog => BlackHole,
- :Logger => BlackHole
+ :BindAddress => "127.0.0.1",
+ :Port => 0,
+ :AccessLog => BlackHole,
+ :Logger => BlackHole
}.freeze
SSL_CONFIG = CONFIG.merge(
- :SSLEnable => true,
- :SSLStartImmediately => true
+ :SSLEnable => true,
+ :SSLStartImmediately => true
).freeze
def initialize(options = {}) # rubocop:disable Style/OptionHash
super(options[:ssl] ? SSL_CONFIG : CONFIG)
mount("/", Servlet)