1
0
Fork 0
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:
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

View file

@ -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