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.
Rackup::Handler
1 parent 74fbe83 commit e1ec1e0Copy full SHA for e1ec1e0
rb/spec/integration/selenium/webdriver/spec_support/rack_server.rb
@@ -18,6 +18,10 @@
18
# under the License.
19
20
require 'rack'
21
+begin
22
+ require 'rackup'
23
+rescue LoadError
24
+end
25
26
module Selenium
27
module WebDriver
@@ -76,7 +80,7 @@ def handler
76
80
77
81
handler = handlers.find { |h| load_handler h }
78
82
constant = handler == 'webrick' ? 'WEBrick' : handler.capitalize
79
- Rack::Handler.const_get constant
83
+ defined?(Rackup) ? Rackup::Handler.const_get(constant) : Rack::Handler.const_get(constant)
84
end
85
86
def load_handler(handler)
0 commit comments