mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fixes ruby 2.7 deprecation warning when registering webrick
This commit is contained in:
parent
dce45ccb22
commit
8f6f822c46
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ end
|
|||
Capybara.register_server :webrick do |app, port, host, **options|
|
||||
require 'rack/handler/webrick'
|
||||
options = { Host: host, Port: port, AccessLog: [], Logger: WEBrick::Log.new(nil, 0) }.merge(options)
|
||||
Rack::Handler::WEBrick.run(app, options)
|
||||
Rack::Handler::WEBrick.run(app, **options)
|
||||
end
|
||||
|
||||
Capybara.register_server :puma do |app, port, host, **options|
|
||||
|
|
Loading…
Add table
Reference in a new issue