Skip to content

Commit df9b606

Browse files
committed
fixup! Make puma log silence completely
1 parent 3640519 commit df9b606

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

example_app_generator/generate_app.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
append_to_file('Gemfile', "gem 'rails-controller-testing', :git => 'https://github.com/rails/rails-controller-testing'\n")
3232
end
3333

34+
if Rails::VERSION::STRING >= '5.1.0'
35+
append_to_file('Gemfile', "gem 'chromedriver-helper', :group => :test\n")
36+
end
37+
3438
if Rails::VERSION::STRING >= '5.2.0'
3539
copy_file sqlite_initializer, 'config/initializers/sqlite3_fix.rb'
3640
end

lib/rspec/rails/example/system_example_group.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ def app
7575

7676
attr_reader :driver
7777

78+
if ::Rails.version.to_f == 5.1
79+
ActionDispatch::SystemTesting::Server.silence_puma = true
80+
end
81+
7882
def initialize(*args, &blk)
7983
super(*args, &blk)
8084
@driver = nil

0 commit comments

Comments
 (0)