mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Simplify configuring of ActionCable.server.config.logger
for actioncable tests
See `git grep "= Logger.new(nil)"`
This commit is contained in:
parent
1055d14127
commit
d2ccf0c6f7
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ Dir[File.expand_path("stubs/*.rb", __dir__)].each { |file| require file }
|
|||
|
||||
# Set test adapter and logger
|
||||
ActionCable.server.config.cable = { "adapter" => "test" }
|
||||
ActionCable.server.config.logger = Logger.new(StringIO.new).tap { |l| l.level = Logger::UNKNOWN }
|
||||
ActionCable.server.config.logger = Logger.new(nil)
|
||||
|
||||
class ActionCable::TestCase < ActiveSupport::TestCase
|
||||
include ActiveSupport::Testing::MethodCallAssertions
|
||||
|
|
Loading…
Reference in a new issue