Skip to content

Commit 9e8e52c

Browse files
committed
[CI] Work around "uninitialized constant Rack::Handler" on rackup 2.2.0 + capybara 3.40
1 parent 2f26bcd commit 9e8e52c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
Bundler.require
1212
begin
1313
require 'rackup/handler'
14+
# Work around "uninitialized constant Rack::Handler" on Capybara here: https://github.com/teamcapybara/capybara/blob/0480f90168a40780d1398c75031a255c1819dce8/lib/capybara/registrations/servers.rb#L31
15+
::Rack::Handler = ::Rackup::Handler unless defined?(::Rack::Handler)
1416
rescue LoadError
1517
require 'rack/handler'
1618
end

0 commit comments

Comments
 (0)