Simplify configuring of `ActionCable.server.config.logger` for actioncable tests

See `git grep "= Logger.new(nil)"`
This commit is contained in:
bogdanvlviv 2018-08-23 12:36:19 +03:00
parent 1055d14127
commit d2ccf0c6f7
No known key found for this signature in database
GPG Key ID: E4ACD76A6DB6DFDD
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ Dir[File.expand_path("stubs/*.rb", __dir__)].each { |file| require file }
# Set test adapter and logger # Set test adapter and logger
ActionCable.server.config.cable = { "adapter" => "test" } 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 class ActionCable::TestCase < ActiveSupport::TestCase
include ActiveSupport::Testing::MethodCallAssertions include ActiveSupport::Testing::MethodCallAssertions