123456789_123456789_123456789_123456789_123456789_

Module: ActionCable::Connection::TestConnection

Relationships & Source Files
Defined in: actioncable/lib/action_cable/connection/test_case.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#logger (readonly)

[ GitHub ]

  
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 58

attr_reader :logger, :request

#request (readonly)

[ GitHub ]

  
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 58

attr_reader :logger, :request

Instance Method Details

#initialize(request)

[ GitHub ]

  
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 60

def initialize(request)
  inner_logger = ActiveSupport::Logger.new(StringIO.new)
  tagged_logging = ActiveSupport::TaggedLogging.new(inner_logger)
  @logger = ActionCable::Connection::TaggedLoggerProxy.new(tagged_logging, tags: [])
  @request = request
  @env = request.env
end