From c11ca0996227ef6f3b6154e4742a9e03949557df Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Sun, 19 Aug 2018 19:23:33 -0400 Subject: Add Action Cable test case and test helper --- actioncable/test/test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actioncable/test/test_helper.rb') diff --git a/actioncable/test/test_helper.rb b/actioncable/test/test_helper.rb index ac7881c950..f5b9ebf517 100644 --- a/actioncable/test/test_helper.rb +++ b/actioncable/test/test_helper.rb @@ -15,6 +15,10 @@ end # Require all the stubs and models 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 } + class ActionCable::TestCase < ActiveSupport::TestCase include ActiveSupport::Testing::MethodCallAssertions -- cgit v1.2.3