1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/test/stubs/test_server.rb

19 lines
395 B
Ruby

require 'ostruct'
class TestServer
include ActionCable::Server::Connections
attr_reader :logger, :config
def initialize
@logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
@config = OpenStruct.new(log_tags: [], subscription_adapter: SuccessAdapter)
end
def adapter
@config.subscription_adapter.new(self)
end
def send_async
end
end