We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b359c3 commit c7d9e98Copy full SHA for c7d9e98
rb/spec/integration/selenium/webdriver/spec_support/rack_server.rb
@@ -50,7 +50,7 @@ def start
50
end
51
52
def run
53
- handler.run @app, :Host => @host, :Port => @port
+ handler.run @app, run_options_for(handler)
54
55
56
def where_is(file)
@@ -90,6 +90,16 @@ def load_handler(handler)
90
false
91
92
93
+ def run_options_for(handler)
94
+ run_opts = {:Host => @host, :Port => @port}
95
+
96
+ if handler == Rack::Handler::WEBrick
97
+ run_opts.merge!(:Logger => WEBrick::Log.new("/dev/null"), :AccessLog => [])
98
+ end
99
100
+ run_opts
101
102
103
def start_forked
104
@pid = fork { run }
105
0 commit comments