Module: ActionCable::Connection::TestConnection

Defined in:
actioncable/lib/action_cable/connection/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.


48
49
50
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 48

def logger
  @logger
end

#requestObject (readonly)

Returns the value of attribute request.


48
49
50
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 48

def request
  @request
end

Instance Method Details

#initialize(request) ⇒ Object


50
51
52
53
54
55
56
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 50

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