mirror of https://github.com/rails/rails
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
|
@ -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 New Issue