Skip to content

Commit 94a6919

Browse files
committed
Make puma log silence completely
1 parent de6d35a commit 94a6919

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rspec/rails/example/system_example_group.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def app
4646
end
4747

4848
included do |other|
49+
ActiveSupport.on_load(:action_dispatch_system_test_case) do
50+
ActionDispatch::SystemTesting::Server.silence_puma = true
51+
end
52+
4953
begin
5054
require 'capybara'
5155
require 'action_dispatch/system_test_case'
@@ -71,10 +75,6 @@ def app
7175

7276
attr_reader :driver
7377

74-
if ActionDispatch::SystemTesting::Server.respond_to?(:silence_puma=)
75-
ActionDispatch::SystemTesting::Server.silence_puma = true
76-
end
77-
7878
def initialize(*args, &blk)
7979
super(*args, &blk)
8080
@driver = nil

0 commit comments

Comments
 (0)