diff options
author | eileencodes <eileencodes@gmail.com> | 2016-11-18 12:52:48 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-02-20 15:07:34 -0500 |
commit | 7ebd072d4999870f39c4aa95240360d497379e54 (patch) | |
tree | fc4405f222a8b774a6f9134edb475cfeb81ce9f3 | |
parent | 47491ddaa6292ddcbdfeefc7f049275729222b09 (diff) | |
download | rails-7ebd072d4999870f39c4aa95240360d497379e54.tar.gz rails-7ebd072d4999870f39c4aa95240360d497379e54.tar.bz2 rails-7ebd072d4999870f39c4aa95240360d497379e54.zip |
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.
-rw-r--r-- | actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb b/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb index e115fe583c..97e5df95b7 100644 --- a/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb +++ b/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb @@ -30,7 +30,7 @@ module ActionSystemTest 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 |