diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-23 12:36:19 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-23 12:36:19 +0300 |
commit | d2ccf0c6f767d6a8170c2ea0160e51cb8cd29a78 (patch) | |
tree | e9e91d6be8349cd326c3c8ebca618e2905ff07e0 /actioncable/test/test_helper.rb | |
parent | 1055d141276a509bf1a9fa720136ee9f0eb24c65 (diff) | |
download | rails-d2ccf0c6f767d6a8170c2ea0160e51cb8cd29a78.tar.gz rails-d2ccf0c6f767d6a8170c2ea0160e51cb8cd29a78.tar.bz2 rails-d2ccf0c6f767d6a8170c2ea0160e51cb8cd29a78.zip |
Simplify configuring of `ActionCable.server.config.logger` for actioncable tests
See `git grep "= Logger.new(nil)"`
Diffstat (limited to 'actioncable/test/test_helper.rb')
-rw-r--r-- | actioncable/test/test_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/test/test_helper.rb b/actioncable/test/test_helper.rb index f5b9ebf517..c924f1e475 100644 --- a/actioncable/test/test_helper.rb +++ b/actioncable/test/test_helper.rb @@ -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 |