提交 cbbbbcc3 编写于 作者: E Eileen M. Uchitelle 提交者: GitHub

Merge pull request #28160 from y-yagi/only_load_systemtestcase_if_puma_is_defined

Only load SystemTestCase if Puma is defined
......@@ -11,7 +11,7 @@
require "active_support/testing/autorun"
if defined?(Capbyara)
if defined?(Capybara) && defined?(Puma)
require "action_dispatch/system_test_case"
end
......@@ -49,7 +49,7 @@ def before_setup # :nodoc:
end
end
if defined? Capybara
if defined?(Capybara) && defined?(Puma)
class ActionDispatch::SystemTestCase
def before_setup # :nodoc:
@routes = Rails.application.routes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册