Skip to content

Commit cbbbbcc

Browse files
authored
Merge pull request rails#28160 from y-yagi/only_load_systemtestcase_if_puma_is_defined
Only load SystemTestCase if Puma is defined
2 parents c4957f8 + a070dfa commit cbbbbcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

railties/lib/rails/test_help.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
require "active_support/testing/autorun"
1313

14-
if defined?(Capbyara)
14+
if defined?(Capybara) && defined?(Puma)
1515
require "action_dispatch/system_test_case"
1616
end
1717

@@ -49,7 +49,7 @@ def before_setup # :nodoc:
4949
end
5050
end
5151

52-
if defined? Capybara
52+
if defined?(Capybara) && defined?(Puma)
5353
class ActionDispatch::SystemTestCase
5454
def before_setup # :nodoc:
5555
@routes = Rails.application.routes

0 commit comments

Comments
 (0)