Permalink
Browse files

Set Webrick logger for system testing

If this is not set Webrick will log **everything** to STDOUT and
distract from the running tests. This will instead log to the log file.
This example was extracted from the Capybara source code.
  • Loading branch information...
eileencodes committed Nov 18, 2016
1 parent 47491dd commit 7ebd072d4999870f39c4aa95240360d497379e54
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb
@@ -30,7 +30,7 @@ def register_puma(app, port)
end
def register_webrick(app, port)
- Rack::Handler::WEBrick.run(app, Port: port)
+ Rack::Handler::WEBrick.run(app, Port: port, AccessLog: [], Logger: WEBrick::Log::new(nil, 0))
end
def set_server

0 comments on commit 7ebd072

Please sign in to comment.